Published by A contributor at Hows.Tech sharing helpful insights.
📝 Article edited 0 times🕒 Last modified by Default Author
☰ Table of Contents
An array is a data structure that holds multiple elements of the same type in continuous memory locations. To accept an array in Java use the array's declared type as the parameter. E.g. if the array is declared as an int then accept it as an int.