how to initialise arraylist with values java one line code example Example: initialize arraylist in 1 line in java Arrays.asList("Code", "Shifter");