For this Question: There are English words that you want to translate them into pseudo-Latin. To change an English word into pseudo-Latin word, you simply change the end of the English word like the following table. 
English      pseudo-Latin
-a               -as
-i, -y           -ios
-l                -les
-n, -ne       -anes
-o               -os
-r                -res
-t                -tas
-u               -us
-v               -ves
-w              -was 
If a word is not ended as it stated in the table, put ‘-us’ at the end of the word. For example, a word “cup” is translated into “cupus” and a word “water” is translated into “wateres”.

Write a program that translates English words into pseudo-Latin words.The input starts with a line containing an integer, n, where n is the number of English words.
The next n lines contain n English words.
Words use only lowercase alphabet letters and each word contains at least 3 and at most 30 letters.

Constraints
1 <= n <= 20For an English word, print exactly one pseudo-Latin word in a new line.Sample Input
2
toy
engine

Sample Output
toios
engianes 

Sample Input
3
cup
water
cappuccino 

Sample Output
cupus
wateres
cappuccinos, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) throws IOException{

		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(br.readLine());
		for(int k=0; k<n; k++)
		{


			String str=br.readLine();
			StringBuilder s=new StringBuilder(str);
			char last=s.charAt(s.length()-1);
			int secondlast=s.charAt(s.length()-2);

			if(last=='a')
			{
				s.append("s");
			}
			else if(last=='i')
			{
				s.append("os");
			}
			else if(last=='y')
			{
				s.delete(s.length()-1,s.length());
				s.append("ios");
			}
			else if(last=='l')
			{
				s.append("es");
			}
			else if(last=='n')
			{
				s.delete(s.length()-1,s.length());
				s.append("anes");
			}
			else if(last=='e' && secondlast=='n')
			{
				s.delete(s.length()-2,s.length());
				s.append("anes");
			}
			else if(last=='o')
			{

				s.append("s");
			}
			else if(last=='r')
			{

				s.append("es");
			}
			else if(last=='t')
			{

				s.append("as");
			}
			else if(last=='u')
			{

				s.append("s");
			}
			else if(last=='v')
			{

				s.append("es");
			}
			else if(last=='w')
			{

				s.append("as");
			}
			else
			{
				s.append("us");
			}

			System.out.println(s);
		}

	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?