People say that asList method convert the array into list and its not copying, so every change in \'aList\' will reflect into \'a\'. So add new values in \'aLis
asList returns a fixed-size list, so that you cannot add new elements to it. Because the list it returns is really a "view" of the array it was created from ('a' in your case), it makes sense that you won't be able to add elements - just like you can't add elements to an array. See the docs for asList