一个是字符,一个是字符串char a = 'a';
String s = "sdf";
String s = "sdf";
解决方案 »
- java 怎么样调用delphi服务器?像http:xxxxxx/xxx/xx?ss=ss&xx=as
- 非要<T>引用参数化的问题?
- 实现JPanel圆角边框
- 想请教下大家,学JAVA的GUI有什么有书比较好?
- 怎么样再程序里面清除Applet类载入程序高速缓存
- 关于String类的一个小问题!
- 一个数学问题,编程解决,求!也看看大家的数学能力!
- 一个简单的问题:如何配置jdk环境变量
- byte[] String char[] 区别如何?
- 判定一个二叉树是否是完全二叉树
- Cannot open "Javac.exe"--菜鸟问题
- 我在98下安装了jbuilder5,怎么才能试里面的jdk1.3
• Represents a 16- bit Unicode character
• Must have its literal enclosed in single quotes (’ ’)
• Uses the following notations:
'a ' The letter a
' \t' A tab
' \u???? ' A specific Unicode character, ???? ,
is replaced with exactly four
hexadecimal digits (for example,
’\ u03A6’ is the Greek letter phi [ F] )String
• Is not a primitive data type; it is a class
• Has its literal enclosed in double quotes ( " " )
"The quick brown fox jumps over the lazy dog."
• Can be used as follows:
String greeting = " Good Morning !! \n ";
String errorMessage = " Record Not Found ! ";
String s = "";
s = s+ a;
char a = "s";
String s = String.valueOf(s);