private void addToList(Vector<String> list,String line){
  list.addElement(line);
}

private void addToList ( Vector < String > list , String line ) { list . addElement ( line ) ; }
helper method for reducing repeated code . adds the specified line to both the specified vector and the specified hashtable .
