Hi,
The contract of Arrays.asList() says that :
Returns a fixed-size list backed by the specified array. (Changes to the returned list "write through" to the array.)
But , running the following code :
will produce as output 2,3,4. If the array of primitives is changed with an Integer array, then the output is the expected 8,3,4.
Can somebody explain please ?
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.