你现在不就是在用byte型吗?c定义的就是byte型。
能时时关心到时空效率,不错不错。
能时时关心到时空效率,不错不错。
解决方案 »
- 对话框的问题。
- textarea 怎么设置成只读?
- 关于Date的问题,在线等
- 如何将含有汉字的String求出其所占字节长度??
- 请问如果在退出时,想把数据写入硬盘(可能需要一段时间),addShutdownHook可否胜任?
- the type xxx can not be resolved .it is indirectly referenced from required .class files
- cs模式的,哪里找时间控件,类似于windows的那种?
- getFileds()和getDeclaredFields()的区别怎么回事
- 请问:不做循环能直接把Integer[]转为int[]吗?
- mysql的8小时close问题
- 关于JTable的问题
- 请JAVA程序员都报上自己的MSN号码,这样可以更有效的交流!!!
但它有带int型参数的方法,应该是可以隐性转换的。
System.out.println(c)是不会有问题的。
byte a=1,b=2,c;
c=(byte)(a+b);
System.out.println(c);
c=a+b;
System.out.println(""+c);