lab & assignment
This commit is contained in:
23
labs/lab2/Names.java
Normal file
23
labs/lab2/Names.java
Normal file
@ -0,0 +1,23 @@
|
||||
// ***************************************************************
|
||||
// Names.java
|
||||
//
|
||||
// Prints a list of student names with their hometowns
|
||||
// and intended major
|
||||
// ***************************************************************
|
||||
public class Names
|
||||
{
|
||||
// ------------------------
|
||||
// main prints the list
|
||||
// ------------------------
|
||||
public static void main (String[] args)
|
||||
{
|
||||
System.out.println ();
|
||||
System.out.println ("\tName\t\tHometown\t\tMajor");
|
||||
System.out.println ("\t====\t\t========\t\t=====");
|
||||
System.out.println ("\tSally\t\tRoanoke\t\t\tComputer Major");
|
||||
System.out.println ("\tAlexander\tWashington\t\tMath Major");
|
||||
System.out.println ("\tKoray\t\tAltinsoy\t\tComputer Major");
|
||||
System.out.println ("\tBurak\t\tKarakilic\t\tComputer Major");
|
||||
System.out.println ();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user