This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
System.out.println("Enter a sentence to get it translated into Pig Latin: ");
String sentence=kb.nextLine();
String[] words = sentence.split(" ");
char a=words.charAt(0);