Advertisement
droidus

studentBody

Oct 5th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. /**
  2.  *
  3.  */
  4.  
  5. /**
  6.  * @author Luke
  7.  *
  8.  */
  9. public class StudentBody {
  10.  
  11.     /**
  12.      * @param args
  13.      */
  14.     public static void main(String[] args) {
  15.         // The address of the school
  16.         Address school = new Address("800 Lancaster Ave", "Villanova", "PA",
  17.                 19085);
  18.  
  19.         // Student #1
  20.         Address jHome = new Address("21 Jump Street", "Lynchburg", "VA", 24551);
  21.         double[] johnGrades = {98.5, 99.7,56.1};
  22.         Student john = new Student("John", "Smith", jHome, school, johnGrades);
  23.  
  24.         // Student #2
  25.         Address mHome = new Address("123 Main Street", "Euclid", "OH", 44132);
  26.         double[] marshaGrades = {100, 100,100};
  27.         Student marsha = new Student("Marsha", "Hones", mHome, school, marshaGrades);
  28.        
  29.         System.out.println(john);
  30.         System.out.println();
  31.         System.out.println(marsha);
  32.  
  33.     }
  34.  
  35. }
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement