I'm trying to get int from String "11010001110011000000000111111110" with code:
int n = Integer.parseInt("11010001110011000000000111111110", 2);
but i get an error:
Exception in thread "main" java.lang.NumberFormatException: For input string: "11010001110011000000000111111110"