最新回答 / 慕勒9497126
因为你--age1了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.printl...
2022-07-09
public class HelloWorld{
public static void main(String[] args) {
String a ="我爱慕课网";
String b ="www.imooc.com";
System.out.println(a+"\n"+b);
}
}
public static void main(String[] args) {
String a ="我爱慕课网";
String b ="www.imooc.com";
System.out.println(a+"\n"+b);
}
}
2022-07-06
three=one+two;
int age1=one+two;
int age2=three+=one;
int age3=three-=one;
int age4=three*=one;
int age5=three/=one;
int age6=three%=one;
System.out.println("three=one+two==>"+age1);
下同
int age1=one+two;
int age2=three+=one;
int age3=three-=one;
int age4=three*=one;
int age5=three/=one;
int age6=three%=one;
System.out.println("three=one+two==>"+age1);
下同
2022-07-06
最新回答 / weixin_慕村3084428
public class HelloWorld { public static void main(String[] args) { // 定义一个长度为 3 的字符串数组,并赋值初始值 String[] hobbys = { "sports", "game", "movie" }; System.out.println("循环输出数组中元素的值:"); // 使用循环遍历数组中的元素 for(int i=0;i<hobbys.length;i++);{ ...
2022-06-26