-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMovieList.java
31 lines (30 loc) · 922 Bytes
/
MovieList.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
public class MovieList {
public static void main(String[] args) {
String[] movies = {
"The Shawshank Redemption",
"The Godfather",
"The Dark Knight",
"Pulp Fiction",
"The Lord of the Rings: The Return of the King",
"Forrest Gump",
"Inception",
"Fight Club",
"The Matrix",
"Goodfellas",
"The Empire Strikes Back",
"The Silence of the Lambs",
"Se7en",
"The Usual Suspects",
"Schindler's List",
"The Green Mile",
"Interstellar",
"Gladiator",
"The Departed",
"The Prestige"
};
System.out.println("List of Movies:");
for (int i = 0; i < movies.length; i++) {
System.out.println(movies[i]);
}
}
}