Java Arrays in 5 Minutes

Why did the programmer quit his job? Because he didn't get arrays.

What is an array

Creating an array

int[] array = new int[10];
double[] array = {10.2, 15.4, 20.6, 25.8};
float[] array = new float[10];

Finding array length

int[] array = {22, 33, 44};

Java array utility class

import java.utils.Arrayspublic class ArrayTest{
public static void main(String args[]){
int[] array = {1,2,3};

When to use arrays


Programmer Since 17. Currently working in front-end and mid-tier programming for a finance company. Check out my Tech blog @

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store