Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 1
While
How to exit the while loop. By writing the word "exit" by the user? String str = new String(); Scanner scanner = new Scanner(System.in); while (str.length() == 0) { System.out.print(“Please enter something”); str = scanner.nextLine(); }
1 ответ
0
Thanks!