//错误提示
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
ouut cannot be resolved or is not a field
at TestChar.main(TestChar.java:14)
//代码
/测试char字符类型/
public class TestChar{
public static void main(String[] args) {
char c1='a';
char c2='中';
char c3='\u0061';
System.out.println(c1);
System.out.println(c2);
System.out.println(c3);
//Java中的字符串不是基本数据类型,而是一个独立定义的类
String str="我爱中国";
System.out.println(str);
System.ouut.println("a\nb\nc\nd\te\tf\tg\t");
}
}
11行ouut错了
public static void main(String[] args) {
char c1='a';
char c2='中';
char c3='\u0061';
System.out.println(c1);
System.out.println(c2);
System.out.println(c3);
//Java中的字符串不是基本数据类型,而是一个独立定义的类
String str="我爱中国";
System.out.println(str);
System.out.println("a\nb\nc\nd\te\tf\tg\t");
}
已经告诉你错误在哪里了呀 out 打错了
拿正经IDE写代码,图里的ouut这种问题, 编译期间就会给你直接报错了