abduaziz alharbi wrote:Never mind guys, i think i got on the right track and can solve this on my own. Thanks for all the help though!!
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
parseInt("1100110", 2) returns 102
salvin francis wrote:Just fyi,
http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#parseInt%28java.lang.String,%20int%29
The parseInt method in Integer allows you to give a radix.
parseInt("1100110", 2) returns 102
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:2^3 = 2 << 3, 2^2 = 2 << 2, and so forth...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|