-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRenew.java
More file actions
88 lines (86 loc) · 5.28 KB
/
Renew.java
File metadata and controls
88 lines (86 loc) · 5.28 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
import java.util.ArrayList;
public class Renew {
public static ArrayList<String> renewaldetail= new ArrayList<>();
public static void licencerenew(){
LicenceApplication.filepath= Registration.drivinglicencepath; // filepath value is stored in drivinglicencepath and now filepath is empty.
System.out.println("File path of original Driving licence:");
LicenceApplication.takingfilepathfromtheuser(); //now filepath contain driving licence path
LicenceApplication.filepath= Registration.citizenshippath;
System.out.println("File path of citizenship document:");
LicenceApplication.takingfilepathfromtheuser();//now filepath contain citizenship document path
LicenceApplication.filepath= Registration.medicalpath;
System.out.println("File path of Medical document:");
LicenceApplication.takingfilepathfromtheuser();//now filepath contain driving Medical document path
LicenceApplication.filepath= Registration.passwordsizepath;
System.out.println("File path of Password size photo:");
LicenceApplication.takingfilepathfromtheuser();//now filepath contain password size path
System.out.println("""
***Renewal Fee (5 Years) for following category:
1. Motorcycle NPR 1,500
2. Car NPR 3,000
3. Bus NPR 5,000
""");
System.out.println("plzz select licence category:");
Registration.licencecategory= Registration.scannerobject.next();
Registration.licencecategory= Registration.licencecategory.toLowerCase();
}
public static void licence_category_form(){
System.out.println("Enter the required amount:");
Registration.userenteredamount= Registration.scannerobject.nextInt();
if (Registration.userenteredamount == Registration.requiredamount){
System.out.println("*****Plzz fill below form****");
System.out.println("First Name:");
renewaldetail.add(Registration.scannerobject.next());
System.out.println("Last Name:");
renewaldetail.add(Registration.scannerobject.next());
System.out.println("Age:");
renewaldetail.add(String.valueOf(Registration.scannerobject.nextInt()));
System.out.println("Occupation:");
renewaldetail.add(Registration.scannerobject.next());
System.out.println("Blood Group:");
renewaldetail.add(Registration.scannerobject.next());
System.out.println("Citizenship Number:");
renewaldetail.add(String.valueOf(Registration.scannerobject.nextInt()));
System.out.println("Date of birth:");
renewaldetail.add(Registration.scannerobject.next());
System.out.println("Gender:");
renewaldetail.add(Registration.scannerobject.next());
System.out.println("Citizenship Issue District:");
renewaldetail.add(Registration.scannerobject.next());
}
}
public static void choosing_number_case4(){
Renew.licencerenew();
switch (Registration.licencecategory) {
case "motorcycle":
Registration.requiredamount = 1500;
Renew.licence_category_form();
break;
case "bus":
Registration.requiredamount= 5000;
Renew.licence_category_form();
break;
case "car":
Registration.requiredamount= 3000;
Renew.licence_category_form();
break;
default:
System.out.println("Enter the category like car, bus, motorcycle.");
}
System.out.println("+-------------------------------------------------------------------------------------+");
System.out.println("| USER INFO |");
System.out.println("+-------------------------------------------------------------------------------------+");
System.out.println("| Licence Category: "+ Registration.licencecategory+" |");
System.out.println("| First Name: "+ renewaldetail.get(0)+" |");
System.out.println("| Last Name: "+ renewaldetail.get(1)+" |");
System.out.println("| Age: "+ renewaldetail.get(2)+" |");
System.out.println("| Occupation: "+ renewaldetail.get(3)+" |");
System.out.println("| Blood Group: "+ renewaldetail.get(4)+" |");
System.out.println("| Citizenship Number: "+ renewaldetail.get(5)+" |");
System.out.println("| Date of Birth: "+ renewaldetail.get(6)+" |");
System.out.println("| Gender: "+ renewaldetail.get(7)+" |");
System.out.println("| Citizenship Issue District: "+ renewaldetail.get(8)+" |");
System.out.println("+-------------------------------------------------------------------------------------+");
System.out.println("Your licence has Renewal."+ Registration.emoji[0]);
}
}