You are on page 1of 1

First consider words that start with a consonant only.

use the Scanner class to ask the user for a


word to translate into Pig Latin. To start with, consider words that begin with consonants only. Read
in the word using the nextLine method and convert it to all lower case letters. Next, translate the
word into pig latin, using the substring method of the String. That is, find the first letter of the word
and all but the first letter of the word. Then create a new string variable that is the concatenation of
word without the first letter, "-", the first letter, and "ay". Print out the resul

You might also like