Write a Java application and use a Two dimensional array to store five Dutch, French and Italian translated words. Use a single array to store the English words.
public class Main
{
public static void main(String[] args) {
String arr[]={"vulcano","influenze","Fiasco","Scenary","lonely"};
String array[]={"volcano","influenza","Figurative","Scenario","solo"};
System.out.print("Foreign words\n");
for(int i=1;i<5;i++){
System.out.print(arr[i]+" ");
}
System.out.print("\nTranslated English words\n");
for(int i=1;i<5;i++){
System.out.print(array[i]+" ");
}
}
}
Comments
Leave a comment