remove the hyphen and concatenate the two words together to become a single token i mean the use of hyphens to show that a word has been broken in order to fit onto a line.
But i am thinking now that the hyphens are also used to join words together to make a compound e.g. 'left-handed'.
thats sounds difficult.. if I use the String.split () (instead of the StringTokenizer) things gonna be easier?
so how can i make this code? '
if there is a hyphen
check if the syllables that the hyphen is between them (
even if there is a change of line) exist as a compound word in the (arraylist/vector) dictionary and
if they do not then eliminate the hyphen and unite the syllables into one word.
pain in the neck lol
ooh and there is no ignoreCase at the StringTokenizer . :-|