-
How do you convert a java.lang.String to an int (or integer)? Things I've tried:
Minimal Example:
|
Beta Was this translation helpful? Give feedback.
Answered by
vsquared
May 17, 2024
Replies: 1 comment 1 reply
-
Never mind; I think I figured out how to do it. You have to convert java.lang.String to a python string using str(cmdStr), and then convert that to an int using int(pyStr).
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
villares
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind; I think I figured out how to do it. You have to convert java.lang.String to a python string using str(cmdStr), and then convert that to an int using int(pyStr).