Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- public class Movies{
- public static void main(String[] args){
- String[] movies = {"Indiana Jones and the Temple of Doom","Raiders of the Lost Ark","Indiana Jones and the Last Crusade" };
- String[][] actors = {{"Harrison Ford","Kate Capshaw","Jonathan Ke Quan"},{"Harrison Ford","Karen Allen","Paul Freeman"},{"Harrison Ford","Sean Connery","River Phoenix"}};
- for (int i = 0; i < movies.length; i++){
- System.out.println("In the movie: "+movies[i]+",the main actors are: "+Arrays.toString(actors[0+1]));
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement