java split拆分以逗号相隔的字符串
作者:互联网
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]); } }
标签:java,String,orgName,System,逗号,static,split,字符串 来源: https://www.cnblogs.com/mihutao/p/15670542.html