标签:das color span 直接 返回 str style rar 转化
Char——>String
String s = String.valueOf(‘c‘); //单个字符 String s = String.valueOf(new char[]{‘c‘}); //转换数组 String s = Character.toString(‘c‘);//实际上直接返回String.valueOf(char) String s = new Character(‘c‘).toString(); String s = new String(new char[]{‘c‘}); String s = "" + ‘c‘;
String——>Char
String.charAt(index)//return char String.toCharArray()//return char[]
转 : https://www.cnblogs.com/OKDA/p/12477644.html
标签:das color span 直接 返回 str style rar 转化
原文地址:https://www.cnblogs.com/fps2tao/p/13381170.html