第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

不能顯示結(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); ???????? ???????? ???????? ????} ???? ????//定義方法完成成績(jī)排序并輸出前三名的功能 ???? ????public?void?get(int[]?score){ ????????System.out.println("考試成績(jī)的前三名為:?"); ????????????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貢獻(xiàn)6條經(jīng)驗(yàn) 獲得超0個(gè)贊

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

查看完整回答
反對(duì) 回復(fù) 2015-06-09
  • WangJhhxx
    WangJhhxx
    就是咱們的慕課網(wǎng)練習(xí)代碼的地方,但我用Eclipse檢驗(yàn)可以顯示
  • 伊兮塵昔
    伊兮塵昔
    你把package那行刪掉試試,或者你把右側(cè)的報(bào)錯(cuò)信息貼出來(lái)我看看也行
  • WangJhhxx
    WangJhhxx
    我試試~
  • 1 回答
  • 0 關(guān)注
  • 1485 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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