@jarlook I personally don’t know too much about int(someString) but you learn something new everyday I guess! After looking at the reference in Processing I do see that int(someString) in fact is code native to the Processing language that works as well! From what I believe though, all three:
int(someString); //this is the best for Processing
Integer.valueOf(someString); //this is more Java related, and as @neilcsmith said, will return an Integer object
Integer.parseInt(someString); //also Java related, but returns an actual primitive int object
So really in the end of the day, it just depends on what it is you specifically need. All three should somehow get you in the ballpark of your expected result. Hope that helps,
EnhancedLoop7