(Not sure if this belongs in OOP section...)
I have a LinkedList of String that I need to add to if something doesn't already exist, does the contains() function automatically do this? I guess I'm just really confused about the concept of object variables in this case because from what I understand object variables only "point" to a location in memory where the actual object is stored so if I had
Can someone clear this up for me?String a = "asdf"; String b = "asdf"; // if (a == b) would return false