Add .2
This commit is contained in:
parent
46c587485c
commit
415e32c78d
1 changed files with 38 additions and 0 deletions
38
.2
Normal file
38
.2
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
import java.util.Scanner;
|
||||||
|
public class Main
|
||||||
|
{
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Insert password:");
|
||||||
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
String pass = scanner.nextLine();
|
||||||
|
if (nome.equals("1234")) {
|
||||||
|
System.out.println("Insert op code: ");
|
||||||
|
|
||||||
|
System.out.println("(1) General");
|
||||||
|
System.out.println("(2) Encrypted");
|
||||||
|
|
||||||
|
|
||||||
|
int op = scanner.nextInt();
|
||||||
|
|
||||||
|
if (op == 1) {
|
||||||
|
System.out.println("");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (op == 2) {
|
||||||
|
System.out.println("");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
System.out.println("wrong password 🛑");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue