How do you convert a decimal to binary and vice versa? using netbeans ide
cherry.basilio2
0
Newbie Poster
Recommended Answers
Jump to PostInteger.toBinaryString(int) in case you don't have to implement the algorithm yourself.
Also note that if you write e.g.
int x = 5;
the 5 is actually stored in binary.System.out.println(x);
prints 5 because the …
Jump to Postthis may help
http://www.roseindia.net/java/java-conversion/BinaryToDecima.shtml... or not. That's a really tortuous and horrible way to see if a string just contains '0' and '1' (if you can work it out at all, given …
All 5 Replies
<M/>
170
Why so serious?
Featured Poster
mvmalderen
2,072
Postaholic
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
stultuske
1,116
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.