标签:
public static void main(String[] args) { String str="单机游戏,网络游戏,小游戏"; List<String> list=new ArrayList<String>(); StringTokenizer st=new StringTokenizer(str,","); while(st.hasMoreTokens()){ list.add(st.nextToken()); } for(String s:list){ System.out.println(s); } }
标签:
原文地址:http://www.cnblogs.com/yangcong/p/4997437.html