Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
if(str.equalsIgnoreCase(secret ) == true){
System.out.println("Access granted");
}else {
System.out.println("Access denied");
}
Solution
Under discussion
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet