У меня есть строка в следующем форматеРазбивает строку и получить каждые значения с помощью Java
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.
Сейчас я пытаюсь разбить строку, используя разделитель «\». Я пытаюсь извлечь все строки и сравнить строку, которую я получаю от ответа, с результатом разделения каждого значения. Я не получаю точную вещь. Вот мой код.
//Note SCBCC_NEW is the string which I will have..
String[] scbCCNewArray = SCBCC_NEW.split("/");
for(String results : scbCCNewArray) {
LOG.info("Value :"+results)
}
Правильно ли это?
Да, это правильный путь. Корректировка типа: '.split (" \ ")' Это обратная косая черта. – Ryan