error: reached end of file while parsing
}
^
1 error
从之前的那个代码开始,都提示我对了,还是出现错误。求解!!!!
}
^
1 error
从之前的那个代码开始,都提示我对了,还是出现错误。求解!!!!
2015-02-09
public class HelloWorld{
public static void main(String[] args) {
final char sex1 = '男';
final char sex2 = '女';
System.out.print(sex1+"\n"+sex2);
}
}
public static void main(String[] args) {
final char sex1 = '男';
final char sex2 = '女';
System.out.print(sex1+"\n"+sex2);
}
}
2015-02-09
String name="爱慕课";
char sex='男';
Short num=18;
Float price=120.5f;
Boolean isOK=true;
System.out.println(name);
System.out.println(sex);
System.out.println(num);
System.out.println(price);
System.out.println(isOK);
char sex='男';
Short num=18;
Float price=120.5f;
Boolean isOK=true;
System.out.println(name);
System.out.println(sex);
System.out.println(num);
System.out.println(price);
System.out.println(isOK);
2015-02-09
public class HelloWorld{
public static void main(String[] args) {
String name1="我爱慕课网";
String name2="www.imooc.com";
System.out.println (name1+"\n"+name2);
}
}
public static void main(String[] args) {
String name1="我爱慕课网";
String name2="www.imooc.com";
System.out.println (name1+"\n"+name2);
}
}
2015-02-09
题目末尾处,吃“主席套餐”和“吃主席套餐”是有区别的。我觉得根据题目,不应该是写成System.out.println("吃主席套餐");这种写法。
2015-02-09