Use alternative syntax for array creation

Showing of some syntactical sugar that makes ruby more concise compared to Java.