vendredi 31 juillet 2015

how to convert a string with square bracket into lots of doubles in Java?

I want to know that how to convert a string I got from Jsonarray like this:

String lineStringJsonArray = "[[[0.093493,51.6037],[0.092077,51.6134],[0.075051,51.6179],[-0.247248,51.5166],[-0.259754,51.5235],[-0.28098,51.518],[-0.301457,51.515]]]"

to a list of doubles.

How should I use pattern to drop those square brackets?

Can someone help? thanks a lot!

Aucun commentaire:

Enregistrer un commentaire