| Author |
Dealing with bytes in java
|
shruty sharma
Greenhorn
Joined: Dec 25, 2008
Posts: 4
|
|
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
Joined: Oct 27, 2005
Posts: 19216
|
|
|
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?
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8430
|
|
|
Hardly an advanced question.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: Dealing with bytes in java
|
|
|