-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibrarianDetails.java
More file actions
88 lines (84 loc) · 1.65 KB
/
Copy pathLibrarianDetails.java
File metadata and controls
88 lines (84 loc) · 1.65 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.lirarymanagmenet;
import java.util.HashMap;
public class LibrarianDetails
{
static HashMap<String, LibrarianEmployee> hashLibrarianDetails = null;
String name;
String pass;
String email;
String address;
String city;
String contactno;
public LibrarianDetails() { }
public LibrarianDetails(String a) { name = a; }
public LibrarianDetails(HashMap<String, LibrarianEmployee> hashLibrarian)
{
hashLibrarianDetails = hashLibrarian;
}
public void setName(String name)
{
this.name = name;
}
public void setPass(String pass)
{
this.pass = pass;
}
public void setEmail(String email)
{
this.email = email;
}
public void setAddress(String address)
{
this.address = address;
}
public void setCity(String city)
{
this.city = city;
}
public void setContactNo(String contactno)
{
this.contactno = contactno;
}
public String getName()
{
return name;
}
public String getPass()
{
return pass;
}
public String getEmail()
{
return email;
}
public String getAddress()
{
return address;
}
public String getCity()
{
return city;
}
public String getContactNo()
{
return contactno;
}
public String toString()
{
return name;
}
public HashMap<String, LibrarianEmployee> takeAddressHashMap()
{
return hashLibrarianDetails;
}
public static void main(String...mohit)
{
LibrarianDetails ld = new LibrarianDetails(mohit[0]);
if(hashLibrarianDetails == null)
{
hashLibrarianDetails = new HashMap<String, LibrarianEmployee>();
}
hashLibrarianDetails.put(ld.name, new LibrarianEmployee(mohit[0], mohit[1], mohit[2], mohit[3], mohit[4], mohit[5]));
new LibrarianDetails(hashLibrarianDetails);
}
}