字符数组转化为字符串用什么函数呢?
我用toString试了一下,虽然能运行但是结果是错误的.高手帮帮忙....多谢多谢!
我用toString试了一下,虽然能运行但是结果是错误的.高手帮帮忙....多谢多谢!
解决方案 »
- 算法题、菜鸟求指导
- 我通过odbc数据源连接sql server2000 求救!!
- keypress中按下键没反应
- 有人知道这个类java.beans.PersistenceDelegate怎么用吗
- 是不是所有的接口都是public 方法,那么它的实现类也全是public 方法,那么不是任何方法都可以直接调用哪个实现类啊,,,为什么要用接口
- 【求助】如何计算时间差?
- 一个关于server socket factory的问题
- 帮我看看小程序!在线等待!!
- 请问哪里可以找到有关Enhydra的资料?
- 大神们,如何将以下代码加到一起去。真的很感谢。代码在下面,是个日历记事本的。
- 菜鸟求助,如何运行JAVA程序?
- 如何设置mysql的jdbc驱动程序的classpath
用这个:String(char[] value)
Allocates a new String so that it represents the sequence of characters currently contained in the character array argument.比如:
char []ch = {'S','t','r','i','n','g'};
String str1 = new String(ch);
System.out.println(str1.toString());
自己加工下就ok啦
String(char[] value, int offset, int count)
两个实用的函数哦!
api里自由黄金屋,具体怎么写,看上面高手写的就好咯
Returns the string representation of the char array argument.