import java.util.Scanner; public class PigLatin { public static void main(String[] args) { String[] word = new String[5]; Scanner sc = new Scanner(System.in); System.out.print("Input 5 words: "); for (int i = 0; i < 5; i++) word[i] = sc.next(); System.out.print("\nPig Latin versions of the 5 words:\n"); for (int i = 0; i < 5; i++) System.out.print(toPigLatin(word[i]) + " "); System.out.println(); } // WRITE YOUR toPigLatin method below }