I have built a class with an array of cinemas. Im trying to return the values in the array or print them out so i can see what they are called.

I've tried returning, system printing and a for each loop but it doesn't seem to be working. What is the simplest way to return values from an array?

thank you in advance

public ArrayList<Cinema> getCinemas(){
        return cinemas;

Post more of your code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.