Created
May 15, 2019 08:20
-
-
Save Fabien-V/e1ce965d292226be49eabcc9ae058aad to your computer and use it in GitHub Desktop.
JAVA 04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Movies { | |
public static void main(String...args) { | |
String[] movies = {"Indiana Jones and the Kingdom of the Crystal Skull", "Indiana Jones and the Last Crusade", "Indiana Jones and the Temple of Doom"}; | |
String[][] actors = { | |
{"Harrison Ford", "Cate Blanchett", "Karen Allen"}, | |
{"Harrison Ford", "Sean Connery", "Denholm Elliott"}, | |
{"Harrison Ford", "Kate Capshaw", "Jonathan Ke Quan"} | |
}; | |
for (int i = 0; i < movies.length; i++){ | |
System.out.println("Dans le film "+movies[i]+", les principaux acteurs sont: "+actors[i][0]+","+actors[i][1]+","+actors[i][2]+"."); | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment