diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-06-07 16:26:46 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-06-07 16:26:46 -0300 |
| commit | 7f16ae0286ab7492eee9f4019d976bc5ca95d556 (patch) | |
| tree | 811d0f5b4713260b5a9ffb9ab64d676c3746dbc3 /src/examples/java/bjc | |
| parent | 235208946ceb2bf0f422956a3ebc0ebb88ba28b6 (diff) | |
Indefinites
Diffstat (limited to 'src/examples/java/bjc')
| -rw-r--r-- | src/examples/java/bjc/inflexion/examples/IndefTester.java | 23 |
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(); + } +} |
