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
Customer Requirements for Developers
this week in the
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:
subject: String or Char -> Binary Representation
Binary to char?
Need Help: Recursive Code -- > Loop
Ques. from JTips Mock 1
String to Binary?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015