我想打破下面格式的while循环,它有一个if语句.如果if语句为true,则while循环也必须中断.任何帮助,将不胜感激.
while(something.hasnext()) {
do something...
if(contains something to process){
do something
break if condition and while loop
}
}
Run Code Online (Sandbox Code Playgroud)