Advertisement
Guest User

Untitled

a guest
May 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import java.util.Arrays;
  2.  
  3. public class Movies{
  4.  
  5. public static void main(String[] args){
  6. String[] movies = {"Indiana Jones and the Temple of Doom","Raiders of the Lost Ark","Indiana Jones and the Last Crusade" };
  7. String[][] actors = {{"Harrison Ford","Kate Capshaw","Jonathan Ke Quan"},{"Harrison Ford","Karen Allen","Paul Freeman"},{"Harrison Ford","Sean Connery","River Phoenix"}};
  8. for (int i = 0; i < movies.length; i++){
  9. System.out.println("In the movie: "+movies[i]+",the main actors are: "+Arrays.toString(actors[0+1]));
  10.  
  11. };
  12.  
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement