• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dealing with bytes in java  RSS feed

 
shruty sharma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a string as follows:

'mnp1011000jie'

I want to retrieve contents of the string as follows:
1st field: mnp
2nd field: 101 (which signifies the binary representation of 5)
3rd field: 1000 (which signifies the binary representation of 8)
4th field: jie

how can I do this USING CORE JAVA?

(Pattern Matching classes are not proving useful in this case)
[ December 25, 2008: Message edited by: shruty sharma ]
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Splitting mnp1011000jie into mnp, 1011000 and jie is not that hard. But how do you determine how to split the remaining 1011000? Is it always 3 and 4, or what?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hardly an advanced question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!