Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SeriesSelector {
- private String scan(){
- Scanner scanner = new Scanner(System.in);
- return scanner.next().toUpperCase();
- }
- public boolean choose() {
- String choice = scan();
- switch (choice){
- case "A":
- return true;
- case "G":
- return false;
- default:
- //TODO ADD ERROR HANDLING
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement