What would I do if it were a string. I would simply multiply the characters by the increasing powers of two to get the equivalent decimal number.
--- Update ---
No, i am talking about...
Type: Posts; User: Arslan Ahmad 656
What would I do if it were a string. I would simply multiply the characters by the increasing powers of two to get the equivalent decimal number.
--- Update ---
No, i am talking about...
That's a problem. If I had to work with strings, I would have done it myself. We have to scan an integer value from CMD using nextInt(). The problem I am facing is that I am not able to find an...
This problem is from Java How to Program 9e, chapter 4, exercise 31.
It asks me to convert a binary number in to decimal.
How to program this in java? I am not able to find an effective algorithm...