public static void main(String[] args) { try { DictionaryNameFactory factory = new DictionaryNameFactory(new File(args[0]), new SimpleNameFactory()); // For debugging, we're always using UTF-8 instead of the default // character encoding, even for writing to the standard output. PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out, "UTF-8")); for (int counter = 0; counter < 50; counter++) { out.println("[" + factory.nextName() + "]"); } out.flush(); } catch (IOException ex) { ex.printStackTrace(); } } }
public static void main(String[] args) { try { DictionaryNameFactory factory = new DictionaryNameFactory(new File(args[0]), new SimpleNameFactory()); // For debugging, we're always using UTF-8 instead of the default // character encoding, even for writing to the standard output. PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out, "UTF-8")); for (int counter = 0; counter < 50; counter++) { out.println("[" + factory.nextName() + "]"); } out.flush(); } catch (IOException ex) { ex.printStackTrace(); } } }
public static void main(String[] args) { try { DictionaryNameFactory factory = new DictionaryNameFactory(new File(args[0]), new SimpleNameFactory()); for (int counter = 0; counter < 50; counter++) { System.out.println("["+factory.nextName()+"]"); } } catch (IOException ex) { ex.printStackTrace(); } } }
public static void main(String[] args) { try { DictionaryNameFactory factory = new DictionaryNameFactory(new File(args[0]), new SimpleNameFactory()); // For debugging, we're always using UTF-8 instead of the default // character encoding, even for writing to the standard output. PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out, "UTF-8")); for (int counter = 0; counter < 50; counter++) { out.println("[" + factory.nextName() + "]"); } out.flush(); } catch (IOException ex) { ex.printStackTrace(); } } }