From 33ca2d7aab7405cff287ac2248079fe60fee779a Mon Sep 17 00:00:00 2001 From: bjculkin Date: Tue, 4 Apr 2017 20:48:03 -0400 Subject: POM changes --- .../java/bjc/inflexion/InflexionTester.java | 38 ++++++++++------------ 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'src/examples/java') diff --git a/src/examples/java/bjc/inflexion/InflexionTester.java b/src/examples/java/bjc/inflexion/InflexionTester.java index ef34ea7..4123378 100644 --- a/src/examples/java/bjc/inflexion/InflexionTester.java +++ b/src/examples/java/bjc/inflexion/InflexionTester.java @@ -58,26 +58,24 @@ public class InflexionTester { Scanner scn = new Scanner(System.in); - wikitest(scn, nounDB); - - /* - * System.out. - * print("Enter a noun to inflect (blank line to quit): "); - * String ln = scn.nextLine().trim(); - * - * while(!ln.equals("")) { System.out.println(); - * - * Noun noun = nounDB.getNoun(ln); - * - * if(noun == null) { - * System.out.println("No inflection available for noun " + ln); - * } else { System.out.printf(OUTPUT_FMT, ln, noun.singular(), - * noun.modernPlural(), noun.classicalPlural()); } - * - * System.out. - * print("Enter a noun to inflect (blank line to quit): "); ln = - * scn.nextLine().trim(); } - */ + System.out.print("Enter a noun to inflect (blank line to quit): "); + String ln = scn.nextLine().trim(); + + while(!ln.equals("")) { + System.out.println(); + + Noun noun = nounDB.getNoun(ln); + + if(noun == null) { + System.out.println("No inflection available for noun " + ln); + } else { + System.out.printf(OUTPUT_FMT, ln, noun.singular(), noun.modernPlural(), + noun.classicalPlural()); + } + + System.out.print("Enter a noun to inflect (blank line to quit): "); + ln = scn.nextLine().trim(); + } scn.close(); } -- cgit v1.2.3