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