java中char类型怎么转string
3个回答
展开全部
package selfutil;
public class tesst {
public static void main(String[] args) {
char ch = 'A';
String str = "" + ch;
System.out.println(str);
}
}
public class tesst {
public static void main(String[] args) {
char ch = 'A';
String str = "" + ch;
System.out.println(str);
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2016-12-16
展开全部
String(char[] value)Allocates a new String so that it represents the sequence of
characters currently contained in the character array argument.
String(char[] value,
int offset,
int count)Allocates a new String that contains characters from a subarray
of the character array argument.
characters currently contained in the character array argument.
String(char[] value,
int offset,
int count)Allocates a new String that contains characters from a subarray
of the character array argument.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询