What’s the Output?
Determine the output of the following poetic switch statement or point out the errors.
int a = 3; switch (a) { case 1: System.out.println(" Once upon a midnight dreary, while I pondered weak and weary, "); case 2: System.out.println(" Over many a quaint and curious volume of forgotten lore, "); case 3: System.out.println(" While I nodded, nearly napping, suddenly there came a tapping, "); case 4: System.out.println(" As of some one gently rapping, rapping at my chamber door "); case 5: System.out.println(" Tis some visitor, I muttered, tapping at my chamber door, "); default: System.out.println(" Only this, and nothing more. "); }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.