Guest User

Untitled

a guest
Jun 25th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class WhichSystem {
  4. /* This application will help you determine
  5. * how much memory you need on the current
  6. * machine to do the task you report you
  7. * want to do.
  8. * The specifics are in the project description
  9. * file posted on the class web site.
  10. */
  11. public static void main(String[] args)
  12. {
  13. Scanner scan = new Scanner (System.in);
  14. int users;
  15. System.out.println("Users?");
  16. users = scan.nextInt();
  17. String system;
  18.  
  19. if (users < 1)
  20. System.out.println ("None needed");
  21. if (users >= 50)
  22. System.out.println ("Impossible");
  23. else
  24. System.out.println("System?");
  25. system = scan.next();
  26.  
  27. }
  28. }
Add Comment
Please, Sign In to add comment