Share your repls and programming experiences

← Back to all posts
Pig Latin translator Java

I created a pig latin translator in java!

The original project is here and it took a while to make I can't do piggy[0] and I had the from pig latin code not working it also can figure out if it is in pig latin or not this is how it works

splits the words and adds them to the piggy array

I made a variable for the length in the piggy array and now it cycles threw the words and converts them so if we're on the 2nd word word it feeds it to the feedpig of the word and converts it

the first part determents if it's in pig latin or not then it converts it, and since FeedPig is a string it needs to return values, and then

prints the returned result