Created
March 17, 2020 07:39
-
-
Save swann44/0665003c4fb5d17e72b1cfe44a53b0a9 to your computer and use it in GitHub Desktop.
Java5
This file contains hidden or 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 et le temple maudit", | |
| "Indiana Jones et la dernière croisade", | |
| "Indiana Jones et le royaume du crâne de cristal", | |
| }; | |
| String[][] actors = { | |
| {"Harrison Ford","Kate Capshaw","Amrish Puri"}, | |
| {"Harrison Ford","Sean Connery","Denholm Elliot"}, | |
| {"Harrison Ford","Shia Laboeuf","Cate Blanchett"}, | |
| }; | |
| for (int i = 0; i < movies.length; i= i + 1) { | |
| System.out.println("Dans le film " + movies[i] +", les principaux acteurs sont: " + actors[i][0] +", " + actors[i][1] +", " + actors[i][2] +""); | |
| } | |
| } | |
| } | |
This file contains hidden or 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
| wilder@wilder-ThinkPad-T440p:~/JavaProjects/DernièreCroisade$ java Movies | |
| Dans le film Indiana Jones et le temple maudit, les principaux acteurs sont: Harrison Ford, Kate Capshaw, Amrish Puri | |
| Dans le film Indiana Jones et la dernière croisade, les principaux acteurs sont: Harrison Ford, Sean Connery, Denholm Elliot | |
| Dans le film Indiana Jones et le royaume du crâne de cristal, les principaux acteurs sont: Harrison Ford, Shia Laboeuf, Cate Blanchett |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment