課程
/后端開(kāi)發(fā)
/Java
/Java入門(mén)第一季(IDEA工具)升級(jí)版
這兩區(qū)別在哪啊,是不是兩種都是對(duì)的,想寫(xiě)哪個(gè)都行?至少上一節(jié)和這一節(jié)兩種都是對(duì)的
2015-12-28
源自:Java入門(mén)第一季(IDEA工具)升級(jí)版 7-1
正在回答
都對(duì),不過(guò)最好用public void top3(int[] scores),養(yǎng)成良好的編程習(xí)慣!
兩種都是對(duì)的,只是寫(xiě)法上的不同,樓主可以查閱一下Java數(shù)組的定義
舉報(bào)
0基礎(chǔ)萌新入門(mén)第一課,從Java環(huán)境搭建、工具使用、基礎(chǔ)語(yǔ)法開(kāi)始
1 回答為啥不能寫(xiě)方法不能寫(xiě)public int showTop3(int[] scores)
2 回答int[] scores={78,91,84,68};和int[] scores=new int[]{78,91,84,68};有何區(qū)別?
2 回答public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; int a =one+two; int b =two*2; int c =(two*2)-one; int d =two*=one; int f =two/
4 回答public class HelloWorld{ public static void main(String[] args) { int age1=24; int age2=18; int age3=36; int age4=27; int sum=age1+age2+age3+age4; double avg=sum/4; int minus=age1-age2; int newAge=--age1; System.out.println("年齡總和:
1 回答public class HelloWorld{ public static void main(String[] args){ int num =999; int count =0; do{ count=count+1; num/=10; }while(num/10!=0); count+=1; System.out.println(
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-01-04
都對(duì),不過(guò)最好用public void top3(int[] scores),養(yǎng)成良好的編程習(xí)慣!
2015-12-28
兩種都是對(duì)的,只是寫(xiě)法上的不同,樓主可以查閱一下Java數(shù)組的定義