经常需要用java拆分字符串如1,2,3,4 tom,jim,andy,han package com.java.lang; public class StringSp { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub java.lang.String a = "my name is yuexiaosheng my blog is java-er.com"; // java.lang.String 的字符串拆分算 More