I want to assign 4294967295 to a variable (2^32-1)
It is obvious that I can't do that with Integer, and can do it with Long.
However, I noted that Java 8 offers Unsigned Integers (at least some methods).
Does any one know what the method, Integer.parseUnsignedInt() does?
When I input "4294967295" to that, and print the variable, it gives the output as -1 
(-2 for 4294967294, -3 for 4294967293 and so on...)
Is there a way that I can still have 4294967295 in a variable?
Am I missing something here?
a=Integer.parseUnsignedInt("4294967295");
System.out.println(a);
This gives the output as -1 but I expected 4294967295.
 
     
     
    