if (!enum.hasMoreElements()) task.setPrepositionalPhrase(pp); else { Vector phrases = new Vector(); while (enum.hasMoreElements()) { phrases.addElement(enum.nextElement()); }
Vector phrases = new Vector(); while (enum.hasMoreElements()) { phrases.addElement(enum.nextElement()); }
  public static NewTask addPrepositionalPhrase(NewTask task, PrepositionalPhrase pp)  {    Enumeration enum = task.getPrepositionalPhrases();    if (!enum.hasMoreElements())      task.setPrepositionalPhrase(pp);    else {      Vector phrases = new Vector();      while (enum.hasMoreElements()) {        phrases.addElement(enum.nextElement());      }