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