Answers for "java while loop q to quit"

0

java while loop q to quit

while(!choice.equals("q")){
    System.out.println("Enter a number or q to quit");
    choice = input.next();

    if(!choice.equals("q")){
        int number = Integer.parseInt(choice);
    }
}
Posted by: Guest on October-01-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language