Integer.parse(binary, base \\\\ 10)

Because you are parsing a hexadecimal number