What does == mean?

== is an logic operator and it is requesting a boolean it should not be confused with = which is used to for example set a value to a variable. You can use == to set a condition like already described from the other comments. So it is used for testing if to values are equal(works for each datatype).4 Kas 2016

Read more

Can an ArrayList contain objects?

An ArrayList is just an object, so we will create it like any other object – calling “new” and storing a pointer to the new ArrayList. When first created, the ArrayList is empty – it does not contain any objects . Traditionally, the things stored inside of a collection are called “elements” in the collection.

Read more