joxaren

Dima's StudentTestDrive

Mar 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. public class StudentTestDrive {
  2.     public static void main(String[] args) {
  3.         final int a;
  4.         Student petya = new Student("Petya", "8A");
  5.         Student vasya = new Student("Vasya", "8A");
  6.         Student ira = new Student("Irina", "8A");
  7.  
  8.         Teacher teacherHuicher = new Teacher();
  9.  
  10.         Student[] students = new Student[3];
  11.         students[0] = petya;
  12.         students[1] = vasya;
  13.         students[2] = ira;
  14.         teacherHuicher.commentingOnResults(students);
  15.     }
  16. }
Add Comment
Please, Sign In to add comment