summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/java/bjc/inflexion/examples/IndefTester.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/examples/java/bjc/inflexion/examples/IndefTester.java b/src/examples/java/bjc/inflexion/examples/IndefTester.java
new file mode 100644
index 0000000..fd1929c
--- /dev/null
+++ b/src/examples/java/bjc/inflexion/examples/IndefTester.java
@@ -0,0 +1,23 @@
+package bjc.inflexion.examples;
+
+import java.util.Scanner;
+
+import bjc.inflexion.EnglishUtils;
+
+public class IndefTester {
+ public static void main(String[] args) {
+ Scanner scn = new Scanner(System.in);
+
+ System.out.print("Enter word: ");
+ String word = scn.nextLine().trim();
+
+ while(!word.equals("")) {
+ System.out.printf("\t%s %s\n", EnglishUtils.pickIndefinite(word), word);
+
+ System.out.print("Enter word: ");
+ word = scn.nextLine().trim();
+ }
+
+ scn.close();
+ }
+}