Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class JavaConsoleLogin {
- public static void main(String[] args){
- Scanner input = new Scanner(System.in);
- System.out.print("Kullanıcı Adı: ");
- String username= input.nextLine();
- System.out.print("Şifre: ");
- String password= input.nextLine();
- System.out.println("Kullanıcı adı: " + username);
- System.out.println("Şifre: " + password);
- if (username.equals(username)){
- if (password.equals("asd123")){
- System.out.println("Doğru giriş yaptı...");
- }
- else{
- System.out.println("Şifre yanlış :(");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment