Hello
i am a beginner in java and this is my first project my project is about cinema which have 10 theaters and i need to provide set of films to each theater i try to do this but i am a bit confused and lost
import java.util.Arrays;
import java.util.List;
import java.util.Iterator;
public class Cinema {
public static void main(String[] args) {
String[] strArray = new String[]
{"Matrix","Avatar","HarryPotter","Taken","The reader"};
List list = Arrays.asList(strArray);
Iterator itr = list.iterator();
System.out.println("List of movies,"); while(itr.hasNext()) System.out.println(itr.next()); } }
how i can link a seperate set of films to each theater?