对不起,我真的很愚蠢的问题,我正在学习一种新的语言,并采取这样的代码:有史以来第一个Java程序错误输出
public class Exercise01 {
int i;
char c;
public static void main(String[] args) {
Exercise01 E = new Exercise01();
System.out.println("i = " + E.i);
System.out.println("c = [" + E.c + "]");
}
}
/* Output:
i = 0
c = [
*/
为什么输出不产生“]”字?它与Unicode有关吗?
PostEdited:变量E.c未被初始化用于实验目的。
E.c的价值是什么? –
它在我身边生产。这是所有的代码? –
它也给我预期的输出。 – luketorjussen