Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class WhichSystem {
- /* This application will help you determine
- * how much memory you need on the current
- * machine to do the task you report you
- * want to do.
- * The specifics are in the project description
- * file posted on the class web site.
- */
- public static void main(String[] args)
- {
- Scanner scan = new Scanner (System.in);
- int users;
- System.out.println("Users?");
- users = scan.nextInt();
- String system;
- if (users < 1)
- System.out.println ("None needed");
- if (users >= 50)
- System.out.println ("Impossible");
- else
- System.out.println("System?");
- system = scan.next();
- }
- }
Add Comment
Please, Sign In to add comment