summaryrefslogtreecommitdiff
path: root/src/examples/java/bjc/inflexion/InflexionTester.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/java/bjc/inflexion/InflexionTester.java')
-rw-r--r--src/examples/java/bjc/inflexion/InflexionTester.java38
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();
}