goto和带标签的break、continue
//带标签的break和continue
//打印101-150之间所有的质数(只能别1和自身整除的数叫做质数)
public static void main(String[] args) {
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+" ");
}
}