Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Movies {
- public static void main(String[] args) {
- String[] titles = {"Indiana Jones and the Last Crusade", "Raiders of the Lost Ark", "Indiana Jones and the Temple of Doom"};
- String[] actorTitles1 = {"Harrison Ford", "Sean Connery", "Alison Doody"};
- String[] actorTitles2 = {"Harrison Ford", "Karen Allen", "Paul Freeman"};
- String[] actorTitles3 = {"Harrison Ford", "Kate Capshaw", "Amrish Puri"};
- String[][] actors;
- actors = new String[][] {
- actorTitles1,
- actorTitles2,
- actorTitles3
- };
- for (int i = 0; i < titles.length; i++) {
- System.out.print("Dans le film " + titles[i] + ", ");
- System.out.print("les principaux acteurs sont : " + actors[i][0] + ", ");
- System.out.print(actors[i][1] + ", ");
- System.out.println(actors[i][2]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement