Java während der Schlaufe Q, um zu beenden
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);
}
}
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);
}
}