I am designing a cinema system
I want to call a another class which has a arraylist method and then display the elements inside the arraylist.
Please help
I made two sample classes
Class cinema()
.
.
.
.
public ArrayList<time> getTime()
{
for (Show show : getTime){
}
return getTime;
}
}
Class 2
Class System()
.
.
.
.
.
private void welcome()
{
Cinema listOftime = new Cinema();
// call and display arraylist
}
I don't known how to call & display the arraylist.
hope that helps
Thanks