public class HelloWorld{
public static void main(String[] args) {
String name="爱慕课";
char sex="男";
int num=18;
double price=120.5;
boolean flag isOK=true;
System.out.println(name);
System.out.println(sex);
System.out.println(num);
System.out.println(price);
System.out.println(isOK);
}
}
不知所措 啊
感觉和人家给的提示不一样啊
public class HelloWorld{
public static void main(String[] args) {
String name="爱慕课";
String sex="男";
int num=18;
double price=120.5;
boolean isOK=true;
System.out.println(name);
System.out.println(sex);
System.out.println(num);
System.out.println(price);
System.out.println(isOK);
}
}
删掉flag 就可以了,char不需要改
将char改成String flag删掉
public class HelloWorld{
public static void main(String[] args) {
String name="爱慕课";
String sex="男";
int num=18;
double price=120.5;
boolean isOK=true;
System.out.println(name);
System.out.println(sex);
System.out.println(num);
System.out.println(price);
System.out.println(isOK);
}
}