刚好写了个方法关于StringTokenizer:
public static String[] splitStringByComma(String source){
      StringTokenizer commaToker =  new StringTokenizer(source,",");
      String[] result = new String[commaToker.countTokens()];
      int i=0;
      while(commaToker.hasMoreTokens()){
        result[i] = commaToker.nextToken();
        i++;
      }
      return result;
  }
  source可以设为:"zh,en"
结果有数组产生:
  result[0]:"zh"
  result[1]:"en"