Im having a small issue when writing my tests. Currently an element i am trying to use is returning me "Points:-" when i print it on the console. In the html its in the format "Points: " and on the next line "-". How can i remove the "Points: " from this element so it only returns "-" and also assign the value "0" to it if its "-"?
My previous code is
Integer point_player = Integer.parseInt(points_player); System.out.println(point_player);
And that used to only return a String from 0-9 which i could just convert to integer but now the - has been introduced.
Aucun commentaire:
Enregistrer un commentaire