Java Arrays in 5 Minutes
Why did the programmer quit his job? Because he didn't get arrays.
What is an array
An array is a grouping of the same typed values in computer memory. In Java, the data stored in an array can be a primitive or an object. As a quick refresher, primitive data types in Java are byte, short, int, long, float, double, or character. When storing primitives in an array Java stores these in adjacent blocks of memory. An element is an individual value in an array. The index is the location of an element in the…