forked from Nitheesh-SG/BankApllication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserDetails.java
More file actions
84 lines (82 loc) · 1.91 KB
/
UserDetails.java
File metadata and controls
84 lines (82 loc) · 1.91 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
/*
@Banking application - With the help of this application we can create new bank
account and other banking operation's.
@Author - Nitheesh G.
@Created at - 02-11-2021
@Updated at - 02-16-2021
@Reviewed by - Anto
*/
package bankapplication;
import java.util.LinkedList;
import java.util.Queue;
public class UserDetails {
static long uniquenumber=1010106001;
private String firstname;
private String lastname;
private int age,balanceamount;
private String mobilenumber;
private String aadharnumber;
static long accountnumber;
Queue<History>TransactionHistory;
UserDetails()
{
this.TransactionHistory = new LinkedList<>();
}
public void setAccountnumber()
{
UserDetails.accountnumber=uniquenumber;
uniquenumber++;
}
public long getAccountnumber()
{
return accountnumber;
}
public void setBalanceamount(int balanceamount)
{
this.balanceamount=balanceamount;
}
public int getBalanceamount()
{
return balanceamount;
}
public String getFirstname()
{
return firstname;
}
public void setFirstname(String firstname)
{
this.firstname=firstname;
}
public String getLastname()
{
return lastname;
}
public void setLastname(String lastname)
{
this.lastname=lastname;
}
public int getAge()
{
return age;
}
public void setAge(int age)
{
this.age=age;
}
public String getMobilenumber()
{
return mobilenumber;
}
public void setMobilenumber(String mobilenumber)
{
this.mobilenumber=mobilenumber;
}
public String getAadharnumber()
{
return aadharnumber;
}
public void setAadharnumber(String aadharnumber)
{
this.aadharnumber=aadharnumber;
}
}