SyntaxFix
Write A Post
Hire A Developer
Questions
For me I got NumberFormatException when trying to deal with the negative numbers. I used the following for the negative and positive numbers.
System.out.println(Integer.parseUnsignedInt("11111111111111111111111111110111", 2)); Output : -9