I'm not looking for answers here,. I've completely written the code, and am just looking for some feedback on a few questions listed below.
The prompt is as follows: Write an interactive program that reads lines of input from the user and converts each line into Pig Latin. Terminate the program when the user types a blank line.
- Words beginning with consonants have the consonant moved to the end of the word and "ay" appended
- Words beginning with vowels simply have "ay" appended
Write an interactive program that reads lines of input from the user and converts each line into Pig Latin. Terminate the program when the user types a blank line.
- Words beginning with consonants have the consonant moved to the end of the word and "ay" appended
- Words beginning with vowels simply have "ay" appended
So, with that out of the way, specificSpecific questions:
- Did I do this in an acceptably efficient way? What other, possibly better, ways could I have accomplished this?
- How could this be done without an ArrayList
ArrayList? Learning how to use ArrayListsArrayLists is something I've done on my own time, not that we've learned in class, and I want to become more independent from them on problems like this in case my teacher doesn't want me to keep using them. - What variables do I need to keep as class variables? When I was declaring them I wasn't sure exactly how I would structure the program, or if I was going to organize it into separate methods or not.
Here's the code:
Thank you!