已采纳回答 / Minna_chen
Arrays.sort();这个是用于对象数组按用户自定义规则排序,意思是需要初始化把Scanner删了换成数组初始化int []scores=new int []{89 , -23 , 64 , 91 , 119 , 52 , 73};不是next()错了
2017-09-19
最新回答 / Gir非碼農
if(one % 2 != 0){ System.out.println("one是偶数"); }else{//do something...如果if没执行,将会走这里}//do another thing...无论if是否执行,之后都会走这里
2017-09-18