最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

不能顯示結(jié)果

不能顯示結(jié)果

WangJhhxx 2015-06-09 12:52:32
=用Eclipse可以顯示結(jié)果,但這里顯示不了,求指明 package?com.immoc; public?class?HelloWorld?{ ???? ????//完成?main?方法 ????public?static?void?main(String[]?args)?{ ????????int[]?scores={89,-23,64,91,119,52,73}; ????????HelloWorld?hello=new?HelloWorld(); ????????hello.get(scores); ???????? ???????? ???????? ????} ???? ????//定義方法完成成績排序并輸出前三名的功能 ???? ????public?void?get(int[]?score){ ????????System.out.println("考試成績的前三名為:?"); ????????????for(int?i=0;i<score.length-1;i++){ ?????????????for(int?j=i+1;j<score.length;j++){ ????????????????????if(score[i]<score[j]){ ????????????????????????int?t; ????????????????????????t=score[i]; ????????????????????????score[i]=score[j]; ????????????????????????score[j]=t; ?????????????????????????} ????????????????} ????????????} ????????????int?j=0; ????????????for(int?i=0;i<score.length;i++){ ????????????????if((0<score[i])&&(score[i]<100)){ ????????????????????score[j]=score[i]; ????????????????????j++; ????????????????} ????????????} ????????????for(int?i=0;i<3;i++){ ????????????????System.out.println(score[i]); ???????????????} ????????????} ?????????? ?????????? ???????? ????}
查看完整描述

1 回答

?
伊兮塵昔

TA貢獻6條經(jīng)驗 獲得超0個贊

能顯示啊,你放在哪里顯示不了,截個圖?

查看完整回答
反對 回復(fù) 2015-06-09
  • 1 回答
  • 0 關(guān)注
  • 1505 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號