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.
Your program must:
Q.2.1 Contain a single array to contain the following five English words and a Two
dimensional array to store the following Dutch, French and Italian translated words.
ENGLISH WORD DUTCH WORD FRENCH WORD ITALIAN WORD
sky hemel ciel cielo
run rennen courir correre
study studie etude studia
music muziek musique musica
dog hond chien can
public class Translator {
public static void main(String[] args) {
String[] eng = new String[5] {
"sky", "run", "study", "music", "dog"
};
String[][] tran = new String[3][5] {
{ "hemel", "rennen", "studie", "muziek", "hond" },
{ "ciel", "courir", "etude", "musique", "chien" },
{ "cielo", "correre", "studia", "musica", "can" }
};
}
}
Comments
Leave a comment