Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. class Movies {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. String[] titles = {"Indiana Jones and the Last Crusade", "Raiders of the Lost Ark", "Indiana Jones and the Temple of Doom"};
  6.  
  7. String[] actorTitles1 = {"Harrison Ford", "Sean Connery", "Alison Doody"};
  8. String[] actorTitles2 = {"Harrison Ford", "Karen Allen", "Paul Freeman"};
  9. String[] actorTitles3 = {"Harrison Ford", "Kate Capshaw", "Amrish Puri"};
  10.  
  11. String[][] actors;
  12.  
  13. actors = new String[][] {
  14. actorTitles1,
  15. actorTitles2,
  16. actorTitles3
  17. };
  18.  
  19.  
  20. for (int i = 0; i < titles.length; i++) {
  21. System.out.print("Dans le film " + titles[i] + ", ");
  22. System.out.print("les principaux acteurs sont : " + actors[i][0] + ", ");
  23. System.out.print(actors[i][1] + ", ");
  24. System.out.println(actors[i][2]);
  25.  
  26. }
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement