public class jay1{
public static void main(String args[]){
for(int i=1;i<=4;i++){
switch(i){
case 1:System.out.printf("%c",'a');
case 2:System.out.printf("%c",'b');
break;
case 3:System.out.printf("%c",'c');
case 4:System.out.printf("%c",'d');
break;
}
}
}
}
这个的输出结果为什么是abbcdd呢
还有谁能哪位高人详细讲下Scanner下的输入hasNext****和next***有什么具体区别?