What's going wrong with my java equals line? -


the code below outputs no succes: 01 , don't know why. i've been busting head hours on now...

//responsestr {"theme":"01"} string[] parts = responsestr.split(":"); parts[1] = parts[1].replace("\"", "");  if (parts[1].equals(01)){     log.v(tag, "success"); } else {     log.v(tag, "no success: " + parts[1]); } 

apparently, i'm dumb. should've added parts[1] = parts[1].replace("}", "");

parts[i] instance of string, 01 object of integer, not equal


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -