lab & assignment

This commit is contained in:
2024-10-23 15:11:20 +03:00
parent 8928b8471a
commit b1f377bfec
9 changed files with 126 additions and 3 deletions

23
labs/lab2/Names.java Normal file
View 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 ();
}
}