And for code readability, you should subtract '0' not 48. That makes it clear exactly why a subtraction is needed.
int x1 = cx1 - '0';

A better way might be to construct a BigInteger using the...