You can either use array declaration or array literal (but only when you declare and ... Also, in case you want something more dynamic there is the List interface.
stackoverflow.com