jdk1.7之后,Java中switch语句支持多种类型:byte、short、char、int、Byte、Short、Char、Integer、Enum、String。 123456 int temp = 0; int count = 0; for(int i=0;i<10;i++){ temp = count++; } System.out.println(temp);//1.输出多少? 赞微海报分享
近期评论