This content has been marked as final. Show 3 replies
prady_jo wrote:As already mentioned, in binary notation, only 1's and 0's are permitted. Besides that, I see you also have some white spaces in your string: this will throw an exception as well.
Can any one explains why this method throws exception
Integer a = Integer. valueOf(" 123 ", 2);