1. input=kb.nextLine();
  2. if(input.charAt(0)=='Q' || input.charAt(0)=='q'){System.out.println("\nBye!"); System.exit(0);}