0

I'm trying to run code based off of a cell being pulled in from my excel sheet. My code runs but then it stops at the if statement. If statement below.

if(data03 == "Checkpoint")

java

1 Answers1

1

Try :-

if ("Checkpoint".equals(data03)) { }

For String comparisons .equals() function is used in java. Not ==. The == just compares object references. .equals() tests for equality.

For more Information.

anoopknr
  • 3,177
  • 2
  • 23
  • 33