Hi,
I'm starting to teach myself Java, and have a quick question:
Why does the first if statement return false, and the second return true?
cParameter = "/u:001"
if (cParameter.sub string(0,3) == "/u:")
if (cParameter.sub string(0, 3).equals("/u:"))
Thanks for enlightening this Java newbie
Alex
I'm starting to teach myself Java, and have a quick question:
Why does the first if statement return false, and the second return true?
cParameter = "/u:001"
if (cParameter.sub string(0,3) == "/u:")
if (cParameter.sub string(0, 3).equals("/u:"))
Thanks for enlightening this Java newbie
Alex
Comment