最赞回答 / qq_慕圣9130795
你看看我的,可能会简单一些,
public static void main(String[] args) { //创建String数组,并为每一个元素赋值。赋值内容为第几周+学习内容 String[] contentList = new String[35]; conte...
2020-12-19
public class HelloWorld {
public static void main(String[] args) {
int one = 22;
String res;
if((one%2)==0){
res = "偶数";
}
else{
res = "奇数";
}
System.out.println("one是"+res);
}
}
public static void main(String[] args) {
int one = 22;
String res;
if((one%2)==0){
res = "偶数";
}
else{
res = "奇数";
}
System.out.println("one是"+res);
}
}
2020-12-17
String res;
if((one%2)==0)
res="偶数";
else
res="奇数";
System.out.println("one是"+res);
if((one%2)==0)
res="偶数";
else
res="奇数";
System.out.println("one是"+res);
2020-12-16
public class HelloWorld{
public static void main(String[] args) {
String myLove="我爱慕课网";
String myLike="www.imooc.com";
System.out.println("myLove");
System.out.println("myLike");
}
}
public static void main(String[] args) {
String myLove="我爱慕课网";
String myLike="www.imooc.com";
System.out.println("myLove");
System.out.println("myLike");
}
}
2020-12-16