Translating text into Pig Latin with Java

Published on . Takes less than 1 minute to read.

I have a beginner level Java exam coming up tomorrow and I'm doing some last-minute studying. Here's a primitive Java program I wrote to translate English text into Pig Latin.

It has some obvious shortcomings like lacking validity checks and inability to handle symbols.

The program is text based. It asks for a file, reads it, loops over individual words and outputs and writes the resulting translation.