In Ruby

array = [1,2,3,4,5]

In Java

int[] intArray = {1,2,3,4,5};
Advertisements