Assignment 18, Your Schedule (that is perfectly lined up)
Code
///Name:Stella Koliavas
//P:5
//Program: 18
//File Name: Your Schedule
//Date Finished: 9/24/15
public class YourSchedule
{
public static void main ( String[] arg )
{
String c1, c2, c3, c4, c5, c6, t1, t2, t3 ,t4 , t5, t6;
c1= "Government";
c2= "APES";
c3= "Stat";
c4= "English";
c5= "CompSci";
c6= "Psych";
t1= "Avicolli";
t2= "Merken";
t3= "Sillavo";
t4= "Ridenhour";
t5= "Davis";
t6= "Heckmann";
System.out.println("+----------------------------------------------+");
System.out.println("|1| "+c1+"| "+t1+"|");
System.out.println("|2| "+c2+"| "+t2+"|");
System.out.println("|3| "+c3+"| "+t3+"|");
System.out.println("|4| "+c4+"| "+t4+"|");
System.out.println("|5| "+c5+"| "+t5+"|");
System.out.println("|6| "+c6+"| "+t6+"|");
System.out.println("+----------------------------------------------+");
}
}
//admire my perfect lining up of the words
Picture of the output