-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFront.java
More file actions
40 lines (24 loc) · 984 Bytes
/
Front.java
File metadata and controls
40 lines (24 loc) · 984 Bytes
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
import java.util.Scanner;
public class Front {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
for (int l = 5;; l++) {
System.out.println("First Name: ");
String k = scan.nextLine(); //---> We get user's infos here
System.out.println("Second Name: ");
String e = scan.nextLine();
if (k.equals("name") & e.equals("username")) { //---> This checks if user's informations are true
Back Her = new Back("name", "username"); //---> User's name and surname goes here
break;
}
else if (l == 10) {
System.out.println("Access Denied");
break;
}
else {
System.out.println("!!!");
}
}
scan.close();
}
}