public static void main(String[] args) { String orgName = "a,b,c,d"; //通过split方法把字符串拆分成一个数组 String[] split = orgName.split(","); for (int i = 0; i < split.length; i++) { System.out.println(split[i]); } }
2021-12-15 13:43:57
public static void main(String[] args) { String orgName = "a,b,c,d"; //通过split方法把字符串拆分成一个数组 String[] split = orgName.split(","); for (int i = 0; i < split.length; i++) { System.out.println(split[i]); } }
下一篇:python基础-字符串的修改