Advertisement
LuisAlvarez

Untitled

May 2nd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. while(runner){
  2.  
  3. try{
  4. System.out.println("Please select an option");
  5. System.out.println("\t1.Alkane ");
  6. System.out.println("\t2.Alkene ");
  7. System.out.println("\t3.Alkyne ");
  8. System.out.println("\t4.Exit");
  9. selector = input.nextInt();
  10. runner = false;
  11. }catch(Exception e){
  12. System.out.println("Invalid Input");
  13. selector = 0;
  14. input.nextLine();
  15. runner = true;
  16.  
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement