1
Orion UO Client / Help! Casting string array elements to integers
« on: June 06, 2022, 02:17:35 AM »
Hello everyone I hope someone can help with this ..
I have a function that is returning durability on items as elements of an array these come out as arrayelement
eg:
int numberx = Integer.parseInt(arrayelement
int numbery = Integer.parseInt(arrayelement[y]);
I have a function that is returning durability on items as elements of an array these come out as arrayelement
- /arrayelement[y] which is the durability say 234 / 255. I want to cast the strings into an integer but I am not sure what the Orion version of Integer.parseInt ?
eg:
int numberx = Integer.parseInt(arrayelement
- );
int numbery = Integer.parseInt(arrayelement[y]);