-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudentsDetails.java
More file actions
45 lines (40 loc) · 987 Bytes
/
Copy pathStudentsDetails.java
File metadata and controls
45 lines (40 loc) · 987 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.lirarymanagmenet;
import java.util.HashMap;
public class StudentsDetails
{
static HashMap<String, StudentSeperately> hashMapStudentRecord = null;
String callno;
public StudentsDetails()
{
}
public StudentsDetails(HashMap<String, StudentSeperately> StudentRecord)
{
hashMapStudentRecord = StudentRecord;
}
public StudentsDetails(String callno)
{
this.callno = callno;
}
public HashMap<String, StudentSeperately> takeAddressStudentDetails()
{
return hashMapStudentRecord;
}
public String getStudentId()
{
return callno;
}
public String toString()
{
return callno;
}
public static void main(String...mohit)
{
StudentsDetails sd = new StudentsDetails(mohit[0]);
if(hashMapStudentRecord == null)
{
hashMapStudentRecord = new HashMap<String, StudentSeperately>();
}
hashMapStudentRecord.put(sd.getStudentId(), new StudentSeperately(mohit[0], mohit[1], mohit[2], mohit[3]));
new StudentsDetails(hashMapStudentRecord);
}
}