If I had this:
do { int x = scannerScan.nextInt(); switch(x) { case 1: System.out.println("Stuff"); break; case 2: System.out.println("Pink cows are fluffy and can fly."); default: continue; } } while(true);
What happens if the default case is reached? I tried to find stuff on the Internet and Stackoverflow, but couldn't find anything to continue in the default case of the Java language.
java switch-statement
Ungeheuer
source share