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
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
Try :-
if ("Checkpoint".equals(data03)) { }
For String comparisons .equals()
function is used in java. Not ==
. The ==
just compares object references. .equals()
tests for equality.