The Future Is Behind You

Array

Fill an array full of numbers.

public class Array {

  public static void main(String[] args) {
    int[] array = new int[5];
    array[0] = 1;
    array[1] = 2;
    array[2] = 3;
    array[3] = 4;
    array[4] = 5;

    for (int i : array) {
      System.out.println(i);
    }
  }
}

Output:

1
2
3
4
5

a = b = c