Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public class LabAssignment4
  2. {
  3.  
  4. public static void main(String[] args)
  5. {
  6. String inputString;
  7. int user = 0;
  8.  
  9.  
  10. inputString = JOptionPane.showInputDialog("Please enter your user ID");
  11.  
  12. if (user >=6 && user <=10)
  13. {
  14. JOptionPane.showMessageDialog(null, "Welcome, dsmith9\nMy name is Hal");
  15. }
  16. else
  17. {
  18. JOptionPane.showMessageDialog(null, "Sorry, user ID is invalid.");
  19. }
  20.  
  21. System.exit(0);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement