An arbitrary string comes from the remote service.
Depending on the presence of the "Body:" substring, I have to parse it in various ways, I do this:
String longString = service.getString(); if (longString.indexOf("Body:") != -1) { // some code } else { // enother code } But when a line like "Body:\Dsdqwe...." logic works from the else block. Why and how can I fix it?
\Dand not\\D? - Alexey Shimansky"Body:\Dsdqwe"in general kmk, an error should pop up, but not fall into some of the conditions ..... because it is invalid .... or something is necessary to "escape" avajava.com/tutorials / lessons / ... - Alexey Shimansky\Dinterpreted as deleting a character or something like that, and therefore the stringBody:does not find it? - Denis Vabishchevich