Hello,
This is my very first post. I'm working on a codingBat problem and would like to know why the arguments in each if statement below produce different results. Can anyone help?
if (str.substring(1,4) == "del") This if statement returns 'false'
if (str.substring(1,4).equals("del")) This if statement returns 'true'
here is an example with the line above where the if statement returns false...