forked from cybernobie/Cognizant_Early_Engagement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MemberDAO.java
32 lines (24 loc) · 796 Bytes
/
MemberDAO.java
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
package library;
import java.util.ArrayList;
public class MemberDAO {
ArrayList<Member> memberList = new ArrayList<Member>();
public void addMember(Member obj){
memberList.add(obj);
}
public void removeMember(Member obj)
{
memberList.remove(obj);
}
public void viewMember()
{
for(int i=0;i<memberList.size();i++)
{
System.out.println("Member Id:" + memberList.get(i).getMemberId());
System.out.println("Member Title:" + memberList.get(i).getMemberName());
System.out.println("Member Type:" + memberList.get(i).getMemberType());
System.out.println("Address:" + memberList.get(i).getAddress());
System.out.println("Email-id:" + memberList.get(i).getEmailId());
System.out.println("Entitlement:" + memberList.get(i).getEntitlement());
}
}
}