static String[] loadStringArray(File file) throws java.io.FileNotFoundException {
  Iterator<String> it=new StringFileIterator(file);
  ArrayList<String> wordsAL=new ArrayList<String>();
  while (it.hasNext()) {
    wordsAL.add(it.next());
  }
  String[] words=wordsAL.toArray(new String[]{});
  wordsAL.clear();
  wordsAL=null;
  return words;
}

static String [ ] loadStringArray ( File file ) throws java . io . FileNotFoundException { Iterator < String > it = new StringFileIterator ( file ) ; ArrayList < String > wordsAL = new ArrayList < String > ( ) ; while ( it . hasNext ( ) ) { wordsAL . add ( it . next ( ) ) ; } String [ ] words = wordsAL . toArray ( new String [ ] { } ) ; wordsAL . clear ( ) ; wordsAL = null ; return words ; }
load up an array of words from the given file . < p > each word appears , one per line .
