|
Binary number to a decimal equivalent
Hello, I started java a few weeks ago for my programming class, and I got this assignment where I had to convert a binary number to an integer, or its decimal equivalent. We are not allowed to use shortcuts to convert a binary to a decimal, or import anything other than java.io.*; I know how the binary system works, but I just don't know how to implement it and make it into a program using java. Does anybody have any idea how I can approach this problem? Any help is appreciated thanks.
|