String name="1,2,3,4"; String[] names = name.split(","); for(String n:names){ System.out.println(n); }是这个意思吗?