已采纳回答 / qq_慕姐5581389
或者你这样写也行
for(int i =(month -1)*4;i<month*4;i++){ if (i>34){ break; }else if (i ==(w -1)){ System.out.println("√" +contentList[i]); }else { System.out.println(contentList[i]); } }
2020-09-07
已采纳回答 / 王小点
public class helloworld { public static void main(String[] args) { int score=68; String mark =(score>=60) ? "及格":"不及格"; System.out.println("考试成绩如何:"+mark); } }你不及格后面的";"是中文字符,改成英文字符就对了
2020-09-06
已采纳回答 / 慕后端4074691
public class HelloWorld{ public static void main(String[] args) {String myLove="我爱慕课网";String myURL="www.imooc.com";System.out.println(myLove);System.out.println(myURL);}}
2020-09-03
已采纳回答 / 杨大勇2不2
// 只要成绩小于60,就循环执行加分操作,并统计加分次数 if(score<60){ score++; count++; }if不是循环 是判断 改成for或者while 就可以了
2020-09-02