请问为什么把基本类型char型称作numeric型?
解决方案 »
- 求助:出现Syntax error on token "package", import expected错误
- Runtime.getRuntime.exec("cmd /c [command]")参数问题
- 几小时以后该去面试了。。。咋办。。。
- jmf程序出现异常
- 关于Resourcebundle的问题,谢谢!!!!!!!
- 请指点一下
- 大家看看,这个网页上,当单击职位查询的地点时,就会出现一个像层的引导项目,感觉挺人性化的,可是怎么做的呢?大家谁知道
- 读取文件时编码(UTF-16,UTF-16BE,UTF-16LE)的问题!急!!!
- protected的用法过来看看
- String str[] 如何转换成 Integer[] 在线!
- 一个很简单的System.out的问题?!
- 如何判断一个class是否存在某个方法
type and the numeric types. The numeric types are the integral types byte, short,
int, long, and char, and the floating-point types float and double.
这是从SUN官方网站下载的《java language specification》上写的
不明白,难道char是数值型的类型吗?
char c='a';
char d='b';
System.out.println(c+d);
似乎我定义了两个字符类型
而实际是ascii码相加 =195
这个很拗口,和别的语言不一样
我希望打印出'ab'
看来用char是不行的了
这个char有什么实际意义吗