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