java single line array initialization code example Example: list java initialize List<MyType> myList = new ArrayList<MyType>();