how can I convert String to Integer?
I am having an issue with converting a string value to integer in JFX. I thought it is possible to call all java libraries, classes. I'm not a real java programmer, but what I've seen on the web was to use parseInt(). but this didn't work.
--------here is what i wrote-------------
var s= "123";
var i = Integer.parseInt(s); //<-- shows error here, i also tried "var i = parseInt(s);" <--this didn't work either
the error message shows: No matching java method found for java.lang.Number.parseInt(java.lang.String)
Can anybody give a hand on this one?
Thanks a bunch