String str=null;while(true){System.out.println("请输入要判断的字符串:");str=scanner.nextLine();if("quit".equals(str)){break;}hw();}