Split Java String
Title seems to be simple. But I don't get a good Idea. This is the situation
I have String like this in my Java program
String scz="3282E81WHT-22/24";
I want to split the above string into 3 Strings, such that first string
value should be 3282e81, next string should be WHT(ie, the String part of
above string), next String value should be 22/24
In short
String first= /* do some expression on scz / And value should be
"3282e81"; String second= / do some expression on scz / And value should
be "WHT"; String third= / do some expression on scz */ And value should be
"22/24";
How to solve this?
No comments:
Post a Comment