-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNomor2.java
38 lines (31 loc) · 1.18 KB
/
Nomor2.java
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
/*
* By: Aditiya Pratama Lubis
*/
package vibes.guy.uas.pemkom2023;
import java.util.Scanner;
public class Nomor2 {
public static void main (String[] args) {
System.out.println ("Hello, user!");
Scanner input = new Scanner (System.in);
System.out.println ("Masukan Username =");
String username = input.nextLine();
System.out.println ("Lanjut, masukan Password =");
String password = input.nextLine();
System.out.println ("Oke. Ingin mencoba apakah data-mu tersinkron? Y/N");
String n = "";
n = input.nextLine();
if (n.equals ("Y")) {
System.out.println ("Oke. " + username);
System.out.println ("Password?");
n = input.nextLine();
if (n.equals (password)) {
System.out.println ("SALAH! Tapi bo'ong. Akun-mu aman :D");
}
else {
System.out.println ("Maaf, tidak tertera :(");
}
}
else {}
System.out.println ("Baiklah, terimakasih menggunakan layanan kami :)");
}
}