I Think math is a little bit tricky in Java. Lets say I have an integer value of 203 and I want to extract 0 and 3. For me, the easiest way would be to have something like Intat(1) and Intat(2) or to be able to extract Left(203,1) to retrieve the "2" and then subract with: 203 - (2 * 100).
Anyway I think I got a solution, see this codeblock below:
String Th = Integer.toString(203);
int Th2 = Integer.valueOf(Th);
String Th3 = Th.charAt(1) + "" + Th.charAt(2);
int Thrown_Card_Two_Post = Integer.valueOf(Th3);
System.out.println(Thrown_Card_Two_Post);
Is there any more efficient way to accomplish this?