Explaination of ArrayList remove() Methods

Description

In the example code you can see that when the remove(Object o) method is called the Integer is not cast to an int and the matching is done using the object's .equals() method rather than using ==

Advice for reuse

Known to compile with javac 1.6.0_23

Resource details

Toolbox

There are no actions available for this resource.

LoadingLoading previews...
ArrayListExperiment.java
Other Software: Creative Commons: GNU GPL 2.0
Download
ArrayListExperiment.java
ArrayListExperiment.java
1 file in this resource