I have been trying to implement Jackson Mac Low’s diastic readings[link] in Java for an exercise this week. I managed to work the algorithm partly, I can choose a phrase before compile and spit out the words according to it that my program reads from an input file. Couple of things are missing though;
- I am only deliminating the words through spaces, I am trying to get my hands dirty regex, but they are damn nonsense.
- I need to work on errorHandling to make the program don’t go into loops. When searching for long phrases and cannot find it in the text.
- Maybe a runtime-user input system.
- Minor problems running the code that are stated below.
Texts to be read :
Handling Errors UsingExceptions from Sun Docs
Regular Expressions from Sun Docs
Java Fundamental Class Reference I/O, Input Output Operations in Java
Introduction to the java.util.regex Package ’ Beginning Regular Expressions by Andrew Watt (through NYU Library)