how to set a switch statement in while loop in java(如何在java的while循环中设置switch语句)
问题描述
I want to do a switch in while loop where at the break of every switch statement the while loop stops and ask for an input like F, R, C, Q. The statement below works but the statement does not break. Please help
Use a label on the loop:
这篇关于如何在java的while循环中设置switch语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!