|
-
Sep 17th, 2005, 08:46 PM
#1
Thread Starter
New Member
-
Sep 18th, 2005, 06:28 AM
#2
-
Sep 18th, 2005, 07:25 AM
#3
Frenzied Member
Re: how to translate letters to binary values?
use getBytes(), then convert each byte to an int, then use the static toBinaryString() method to get the equivalent binary string.
-
Sep 18th, 2005, 08:01 AM
#4
Re: how to translate letters to binary values?
Also note that this:
int i = 1000001
is not binary.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 19th, 2005, 11:16 PM
#5
Thread Starter
New Member
Re: how to translate letters to binary values?
 Originally Posted by System_Error
use getBytes(), then convert each byte to an int, then use the static toBinaryString() method to get the equivalent binary string.
Hi there, Do you think I am on the right track.
class Binary {
public void getBytes(byte dst[]) or should I use public byte[] getBytes(String enc) throws UnsupportedEncodingException
public static String toBinaryString(int i)
Thx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|