File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
String or Char -> Binary Representation
Joined: Aug 04, 2011
Aug 19, 2011 13:05:40
I don't really know how it works but I wanna convert a
to its binary representation.
It can be done char by char or the whole String at once.
Joined: May 31, 2005
Aug 19, 2011 13:26:46
I believe you're looking for the String.getBytes methods. Be sure to read up on which you need, depending on the encoding of the String.
Also useful would be Integer.toBinaryString.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: String or Char -> Binary Representation
Ques. from JTips Mock 1
Need Help: Recursive Code -- > Loop
Binary to char?
String to Binary?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013