My 'if' is not working while string is the same

view full story

http://stackoverflow.com – I'm trying to check if the type of an update is the same as reactie // set list image String type_image; String type = update.get(Updates.TAG_TYPE); if(type == "reactie"){ // Reactie // some code }else{ //code } When i print type, reactieis the output, but the if is not true and it goes to the else. What is the problem here? (HowTos)