Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- */
- /**
- * @author Luke
- *
- */
- public class StudentBody {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // The address of the school
- Address school = new Address("800 Lancaster Ave", "Villanova", "PA",
- 19085);
- // Student #1
- Address jHome = new Address("21 Jump Street", "Lynchburg", "VA", 24551);
- double[] johnGrades = {98.5, 99.7,56.1};
- Student john = new Student("John", "Smith", jHome, school, johnGrades);
- // Student #2
- Address mHome = new Address("123 Main Street", "Euclid", "OH", 44132);
- double[] marshaGrades = {100, 100,100};
- Student marsha = new Student("Marsha", "Hones", mHome, school, marshaGrades);
- System.out.println(john);
- System.out.println();
- System.out.println(marsha);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement