I have a string in the following format
Duplicate application\Your request has been rejected by the Credit Bureau server.\Entered value is lower than the minimum requirement to apply with this Income proof document. Please try using any other Income Support Document.\Validation error. Policy criteria not met.\Decisioning System unavailable at the moment\Decision Center error:\We regret not being able to take your application forward at this point. Thank you for applying.
Now, I'm trying to split the string using the delimiter "\". I'm trying to fetch all the strings and compare the string which I receive from the response with the split result each value. I'm not getting the exact thing.. Here is my code..
//Note SCBCC_NEW is the string which I will have..
String[] scbCCNewArray = SCBCC_NEW.split("/");
for(String results : scbCCNewArray) {
LOG.info("Value :"+results)
}
Is it the right way?
.split("\")That's a backslash.