-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTesting.java
More file actions
24 lines (17 loc) · 771 Bytes
/
Testing.java
File metadata and controls
24 lines (17 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public class Testing {
public static void main(String[] args) {
// TODO Auto-generated method stub
objectsClass firstTeacher = new objectsClass("Teacher", "1", "Dr Nigaht");
objectsClass secondTeacher = new objectsClass ("Teacher", "2", "Dr Wadee");
objectsClass thirdTeacher = new objectsClass ("Teacher", "3", "Dr Susan");
linkedList teacherList = new linkedList();
teacherList.add(firstTeacher);
teacherList.add(secondTeacher);
teacherList.add(thirdTeacher);
System.out.println("There are " + teacherList.size() + " teachers in this list. They are: " + teacherList.toString());
System.out.println(teacherList.get(2));
System.out.println(teacherList.get(3));
System.out.println(teacherList.get(4));
System.out.println(teacherList.get(5));
}
}