I have a pig latin translator assignment that is supposed to read in a text file, translate to pig latin and write to a file or display the output. As it is now it is only translating the last word of the text file. I can't figure out how to get it to read in each word to a string, translate, and then display each new word. I tried putting it into an arraylist but then I couldn't figure out how to split it at each space much less handle punctuation. Any help would be greatly appreciated.
Before you do anything about punctuation, etc., you would have to decide what you are doing about it. Are you keeping the punctuation unchanged? What do you mean about putting things in an arraylist (ArrayList, please, by the way)?
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Create Edit Print & Convert PDF Using Free API with Java