-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudentDriver.java
More file actions
27 lines (21 loc) · 855 Bytes
/
studentDriver.java
File metadata and controls
27 lines (21 loc) · 855 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 Arrays;
public class studentDriver {
public static void main(String[] args) {
studentDB sdb1=new studentDB("Root","Root");
sdb1.login("Root", "Root");
sdb1.addStudent("Raju", 21, 3, "BE", 67, "A+", 'M', 1001);
sdb1.addStudent("Kaju", 23, 4, "BTech", 88, "AB+", 'F', 1001);
sdb1.addStudent("Amar", 19, 1, "BCom", 77, "O+", 'M', 1001);
sdb1.addStudent("Akbar", 20, 1, "BCA", 92, "B+", 'M', 1001);
sdb1.addStudent("Alka", 21, 3, "BE", 90, "A-", 'F', 1001);
sdb1.addStudent("Rajendra", 25, 2, "Mtech", 72, "O+", 'M', 1001);
sdb1.addStudent("Fule", 23, 4, "BTech", 62, "B+", 'F', 1001);
//sdb1.printDB();
System.out.println("Name not Present in DB "+sdb1.searchByName("Swati"));
sdb1.searchByRoll();
// sdb1.removeByName("Amar");
sdb1.printDB();
sdb1.sortByMarks();
sdb1.printDB();
}
}