diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2017-04-04 20:48:03 -0400 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2017-04-04 20:48:03 -0400 |
| commit | 33ca2d7aab7405cff287ac2248079fe60fee779a (patch) | |
| tree | 893291fcc9833b6f6caaca2567401cf34a502e1e /src/examples/java/bjc/inflexion/InflexionTester.java | |
| parent | 128bc87156e42a75c4cdc5fa9ead725253855677 (diff) | |
POM changes
Diffstat (limited to 'src/examples/java/bjc/inflexion/InflexionTester.java')
| -rw-r--r-- | src/examples/java/bjc/inflexion/InflexionTester.java | 38 |
1 files changed, 18 insertions, 20 deletions
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(); } |
