char c = '9';
int i = c - '0';

String s = "10";
int j = Integer.parseInt(s);