Пример #1
0
 private static void parseArgs(String theStringList, String[] s) {
   int x = 0;
   StringTokenizer tokenizer = new StringTokenizer(theStringList, " ");
   while (tokenizer.hasMoreTokens()) {
     s[x++] = tokenizer.nextToken();
   }
 }
Пример #2
0
 private static Locale parseLocal(String localString) {
   int x = 0;
   String[] s = {"", "", ""};
   StringTokenizer tokenizer = new StringTokenizer(localString, "_");
   while (tokenizer.hasMoreTokens()) {
     s[x++] = tokenizer.nextToken();
   }
   return new Locale(s[0], s[1], s[2]);
 }