java chararray в int

char[] digits = { '1', '2', '3' };
int number = Integer.parseInt(new String(digits));
Lovely Lark