Results 1 to 4 of 4
Thread: Need help
- 09-03-2010, 03:14 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 1
- Rep Power
- 0
- 09-03-2010, 03:51 PM #2
Can you explain what the String represents? Is is a decimal number?
If so use one of the Long class methods to convert it to an long value.
Then use the AND operator (with 0xFF mask) and shifts to get each byte of the long into the byte array.
- 09-04-2010, 04:09 AM #3
I guess this may help
String stringName = "1010005100";
byte [] array=stringName.getBytes();+ 1 my REP
Good Luck :)
- 09-04-2010, 05:01 AM #4
Member
- Join Date
- Sep 2010
- Location
- phillipines
- Posts
- 2
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks