-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPassword.java
More file actions
38 lines (32 loc) · 1.07 KB
/
Password.java
File metadata and controls
38 lines (32 loc) · 1.07 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
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package apt3040a;
import java.util.Scanner;
/**
*
* @author Roggers Anguzu
*/
public class Password {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String login="rogers12345";
String password;
Scanner input=new Scanner(System.in);
System.out.println("*************USER VERIFICATION***********");
System.out.println("Please Student Enter your Username: ");
String name=input.nextLine();
System.out.println("Please Enter your Password: ");
password=input.nextLine();
if(password==login){
System.out.println("Dear " +name+ " Your Login is SuccessFull");
}
else{
System.out.println("Login has Failed");
}
}
}