本来就没有办法编译,jbuilder 说\u0004是个变量
解决方案 »
- JAVA学习指导
- 这是什么问题?
- JAVA写文件不成功,谢谢!
- 滑动折叠菜单
- 在if(e.getSource().equals(fuButton1))方法里面哪个地方出了错,请帮我改改,它错在那里呢?谢谢!
- 用jdbc连sqlserver怎么都连不上,急死了
- 为何我得到的月份值是当前月份减一:month=Calendar.getInstance().get(Calendar.MONTH);比如当前时间为10月,month的值为9。
- 请问,c#和java哪个上手快!
- 怎么在Tag中得到当前的会话???
- java 的好網站...
- [求助]我这里有段程序,无法运行,请高手指点!
- 怎样使一个按钮成为默认按钮?
public class TestChar {
public static void main(String[] args) {
byte A = 1;
byte B = '\u0041';
System.out.println(B);
}
}
才可以然后,去了byte A=1完全没问题呀!
public static void main(String[] args) {
byte A = 1;
byte B = '\u0041';
System.out.println(B);
}
}
public class TestChar {
public static void main(String[] args) {
byte A = 1;
byte B = \u0041;
System.out.println(B);
}
}
结果都是1
但请注意:public class TestChar
{
public static void main(String[] args)
{byte B = '\u0041';
System.out.println(B);
}
}
结果是:65
去掉A=1当然不能编译至于下面的写法当然可以编译,但是与一开始的程序不一样了
{
public static void main(String[] args)
{byte B = '\u0041';
System.out.println(B);
}
}
去掉byte A = 1;结果是:65