I have a string like |serialNo|checkDelta?|checkFuture?|checkThis?|
.
Now I am using the following code to split the string.
String[] splitString = str.split("|");
but when I use this I get array of string that contains each and every character, whereas I need string which contains letter like serialNo
, checkDelta?
, checkFuture?
, checkthis?
.
How to get these? Am I missing something?