-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfeatures.java
More file actions
52 lines (46 loc) · 1.61 KB
/
features.java
File metadata and controls
52 lines (46 loc) · 1.61 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
//System.out.print("");
package Project;
import java.util.*;
public class features {
static Scanner sc = new Scanner(System.in);
@SuppressWarnings("rawtypes")
public static LinkedList<Stack> ll = new LinkedList<>();
public static void display(Stack<Double> history)
{
if(history.empty())
return ;
Double x = history.peek();
history.pop();
System.out.println(x);
display(history);
history.push(x);
}
@SuppressWarnings("unused")
public static void main(String[] args) {
System.out.println("Hello User!!!");
System.out.print("Name: ");
String name = sc.nextLine();
System.out.print("Set MPIN: ");
int mpin = sc.nextInt();
System.out.println("No of account to be added: ");
int n= sc.nextInt();
for(int i=0;i<=n-1;i++){
Stack<String> stk = new Stack<>();
System.out.println("\nBank name: ");
String BankAcc = sc.next();
stk.add(BankAcc);
System.out.print("IFSC code: ");
String ifcs = sc.next();
stk.add(ifcs);
System.out.print("Account no: ");
String acc = sc.next();
stk.add(acc);
System.out.print("CRN: ");
String crn = sc.next();
stk.add(crn);
ll.add(stk);
System.out.println("Account added Succefully!!!!");
}
Project.Feature.main(1,mpin);
}
}