java arrays.aslist add code example Example: arrays.aslist.add List<String> list = new ArrayList<String>(Arrays.asList("a", "b"));