将输入的字符串转为char字符数组

来源:互联网 发布:淘宝无线端短连接 编辑:程序博客网 时间:2024/06/05 06:05
Scanner sc = new Scanner(System.in);
//System.out.print("请输入字符串:");
str = sc.nextLine();
char[] chs = str.toCharArray();
阅读全文
0 0