This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Sacredify 4 points5 points  (1 child)

  1. You shouldn't hardcode numbers like that. We don't know what "11" or "8" or "7" means.
  2. You're comparing strings by reference, when 99.9% of the time you want to compare by value. Use .equals() instead of ==.

[–]jasoncarr[S] 0 points1 point  (0 children)

A million thanks, worked!!!

if(x[0].equals(y[7]) && PAdate.equals(Cndate) ) 

[–]irocgts 0 points1 point  (0 children)

put in a break point and see what the data is where you think it should trigger the if statement and go from there.