JAVA中将字符串按某一分隔符分隔为多个字符… 很久之前还知道,用的时候给忘了,记下。 String orignString = new String("5,8,7,4,3,9,1"); String[] testString = orignString.split(",");