I AM A KETTLE! Do not swear much! the fact is that the divisor symbol is also repeated several times in the value itself. At the exit, I have porridge (((How to designate a symbol otherwise ????

String StartEnd = jsonPropose.getString("addr"); String[] massAdr = StartEnd.split(","); Log.e("<<<<<<<>>>>>>>>>>>>>ADDR......SPLIT_______1:" +massAdr[0]); Log.e("<<<<<<<>>>>>>>>>>>>>ADDR......SPLIT_______2:" +massAdr[1]); 

That's what's in the variable: <<<<<<< >>>>>>>>>>>>> ADDR: ["Victory Boulevard, 6", "Fighting 5th passage, 4"] And this is the result of separation: <<<<<<< >>>>>>>>>>>>> ADDR ...... SPLIT _______ 1: [Victory Boulevard <<<<<< >>>>>>>>>> >>> ADDR ...... SPLIT_______2: 6 "

  • one
    You have an array here in JSON format. Find the JSON parser for Java and use it. - Sergey Nudnov
  • Added parser. Does not reach how to apply ..? Could you tell? Thank you so much! - Konstantin
  • I do not program in java. Try to look, for example, here: github.com/fabienrenaud/java-json-benchmark or search for "Java parse json string" - Sergey Nudnov
  • what is the content of StartEnd and what do you want to have on output? - Dmitry
  • String StartEnd = jsonPropose.getString ("addr"); String [] massAdr = StartEnd.split (","); Log.e ("<<<<<<< >>>>>>>>>>>>> ADDR ...... SPLIT_______1:" + massAdr [0] + massAdr [1]); Log.e ("<<<<<<< >>>>>>>>>>>>> ADDR ...... SPLIT_______2:" + massAdr [2] + massAdr [3]); String SummStart = addPrefix + massAdr [0] + massAdr [1]; String SummEnd = addPrefix + massAdr [2] + massAdr [3]; In the StartEnd address is written entirely. Then I divided it all the same into 2 full ones. But, trying to ask for coordinates on them - questions appear ... We'll have to lay out a new question, because does not fit here. - Konstantin

0