1.goto流程
package com.Java.控制流程;
import java.sql.SQLOutput;
public class Demo38 {
public static void main(String[] args) {
//输出101到150的质数
int count =0;
outer:for (int i = 101; i < 150; i++) {
for (int j =2; j<i/2;j++){
if (i%j==0){
continue outer;
}
}
System.out.print(i+" ");
}
}
}