Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Exercise6 {
- public static void main(String[] args) {
- // INSERT YOUR CODE HERE
- String user = Input.askString("Username");
- String pass = Input.askString("Password");
- if (user.equals("joe") && pass.equals("guess"));
- {
- System.out.println("Welcome, joe!");
- }
- else
- {
- System.out.println("Incorrect username or password.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement