if (tokenizer.hasMoreTokens())
if (tokenizer.hasMoreTokens()) {
   private static void parseKeyStrokes(Properties keystrokes) {      String theStringList = "";      String theKey = "";      Enumeration ke = keystrokes.propertyNames();      while (ke.hasMoreElements()) {         theKey = (String)ke.nextElement();         theStringList = keystrokes.getProperty(theKey);         int x = 0;         int kc = 0;         boolean is = false;         boolean ic = false;         boolean ia = false;         boolean iag = false;         StringTokenizer tokenizer = new StringTokenizer(theStringList, ",");         // first is the keycode         kc = Integer.parseInt(tokenizer.nextToken());         // isShiftDown         if (tokenizer.nextToken().equals("true"))            is = true;         else            is =false;         // isControlDown         if (tokenizer.nextToken().equals("true"))            ic = true;         else            ic =false;         // isAltDown         if (tokenizer.nextToken().equals("true"))            ia = true;         else            ia =false;         // isAltDown Gr         if (tokenizer.hasMoreTokens())            if (tokenizer.nextToken().equals("true"))               iag = true;            else               iag =false;         mappedKeys.put(new KeyStroker(kc, is, ic, ia, iag),theKey);      }   }