String name="爱慕课";
char sex='男';
int num=18;
double price=120.5;
boolean isOK=true;
char sex='男';
int num=18;
double price=120.5;
boolean isOK=true;
2023-07-21
public class HelloWorld{
public static void main(String[] args) {
String a="我爱慕课网";
String b="www.imooc.com";
System.out.println(""+a);
System.out.println(""+b);
}
}
public static void main(String[] args) {
String a="我爱慕课网";
String b="www.imooc.com";
System.out.println(""+a);
System.out.println(""+b);
}
}
2023-07-21
最新回答 / lucasj
别的也可以,具体看你的数组是什么数据类型的,举例:如果是整数数组,那就用int如果是字符串数组,那就用String如果是浮点型数组,那就用double
2023-07-20
public class HelloWorld{
public static void main(String[] args){
System.out.println("hello imooc!");
}
}
public static void main(String[] args){
System.out.println("hello imooc!");
}
}
2023-05-16
int score = 60;
int count = 0;
System.out.println("加分前成绩: " + score);
for (; score < 60; count++,score++) {
}
System.out.println("加分后成绩: " + score);
System.out.println("共加了" + count +"次!");
int count = 0;
System.out.println("加分前成绩: " + score);
for (; score < 60; count++,score++) {
}
System.out.println("加分后成绩: " + score);
System.out.println("共加了" + count +"次!");