-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
27 lines (17 loc) · 719 Bytes
/
Copy pathMain.java
File metadata and controls
27 lines (17 loc) · 719 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
25
26
27
package studentOop;
public class Main {
public static void main(String[] args) {
StudentManager studentManager = new StudentManager();
Student student1 = new Student(1, "Özgür", "Çaðlak", 1234);
Student student2 = new Student(2, "Adem", "Yýldýz", 1223);
Student student3 = new Student(3, "Batuhan", "Pamukçu", 2433);
studentManager.add(student1);
studentManager.add(student2);
studentManager.add(student3);
Student studentTest = new Student(1, "Boran", "Karabey", 1212);
System.out.println(studentManager.getAll().size());
studentManager.delete(1);
System.out.println(studentManager.getAll().size());
studentManager.update(studentTest,1);
}
}