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