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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

慕課網(wǎng)的這個(gè)編譯器是不是出問題了?

我填寫完代碼后在eclipse中執(zhí)行,完全沒問題。但是在這里就是無法通過。好奇怪啊?。?!

正在回答

2 回答

有時(shí)候會(huì)出現(xiàn)小小問題、看提示進(jìn)行敲代碼!

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

風(fēng)云7857 提問者

非常感謝!
2016-06-16 回復(fù) 有任何疑惑可以回復(fù)我~

public class HelloWorld {
?? ?
??? public static void main(String[] args) {
?????? ?
??????? // 定義一個(gè)整型數(shù)組,長(zhǎng)度為10
??????? int[] nums =new int[10];
?????? ?
??????? //通過循環(huán)給數(shù)組賦值
?? ??? ?for (int i = 0; i < nums.length; i++) {
??????????? // 產(chǎn)生10以內(nèi)的隨機(jī)數(shù)
?? ??? ??? ?int x = (int)(Math.random()*10);
?????????? ?
?? ??? ??? ?nums[i] = x;// 為元素賦值
?? ??? ?}
?????? ?
?? ??? ?// 使用foreach循環(huán)輸出數(shù)組中的元素
?? ??? ?for (int num:nums) {
?? ??? ??? ?System.out.print(num + " ");
?? ??? ?}
?? ?}
}public class HelloWorld {
?? ?
??? public static void main(String[] args) {
?????? ?
??????? // 定義一個(gè)整型數(shù)組,長(zhǎng)度為10
??????? int[] nums =new int[10];
?????? ?
??????? //通過循環(huán)給數(shù)組賦值
?? ??? ?for (int i = 0; i < nums.length; i++) {
??????????? // 產(chǎn)生10以內(nèi)的隨機(jī)數(shù)
?? ??? ??? ?int x = (int)(Math.random()*10);
?????????? ?
?? ??? ??? ?nums[i] = x;// 為元素賦值
?? ??? ?}
?????? ?
?? ??? ?// 使用foreach循環(huán)輸出數(shù)組中的元素
?? ??? ?for (int num:nums) {
?? ??? ??? ?System.out.print(num + " ");
?? ??? ?}
?? ?}
}

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

慕課網(wǎng)的這個(gè)編譯器是不是出問題了?

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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