Skip to content

Instantly share code, notes, and snippets.

@Fabien-V
Created May 15, 2019 08:20
Show Gist options
  • Save Fabien-V/e1ce965d292226be49eabcc9ae058aad to your computer and use it in GitHub Desktop.
Save Fabien-V/e1ce965d292226be49eabcc9ae058aad to your computer and use it in GitHub Desktop.
JAVA 04
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