can we return 7 elements of an int array using return statement. if not, please help?

A return statement can return one item. That item could be an array with any number of elements.
Think of what you can put on the right hand side of an assignment statement statement.

Be a part of the DaniWeb community

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