Advertisement
Guest User

Untitled

a guest
Aug 5th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public class Exercise6 {
  2. public static void main(String[] args) {
  3. // INSERT YOUR CODE HERE
  4. String user = Input.askString("Username");
  5. String pass = Input.askString("Password");
  6.  
  7. if (user.equals("joe") && pass.equals("guess"));
  8. {
  9. System.out.println("Welcome, joe!");
  10. }
  11. else
  12. {
  13. System.out.println("Incorrect username or password.");
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement