am getting problem while using split with pipeline.but with other characters it works well.What am doing wrong please help me.
String s =\"H|PONumber1|1|1\"; Str
The pipe is being treated as a regex special character. Just escape it via \\| and you'll be good. From the javadoc on String.split...
\\|
Splits this string around matches of the given regular expression.
If you want to be safe, always pass your text to Pattern.quote(stringToSplitOn);
Pattern.quote(stringToSplitOn)