A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
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
Ques. from JTips Mock 1
String to Binary?
Need Help: Recursive Code -- > Loop
Binary to char?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014