-2

我怎样才能改变string

st = "[123, 123, 134,    90]"

进入

s = "123 123 134 90"
4

2 回答 2

1

用。。。来代替 ””

用。。。来代替 ” ”

用。。。来代替 ””

用。。。来代替 ””

于 2013-05-28T11:43:53.283 回答
0

感谢 Maroun Maroun

String st = "[123, 123, 134, 90]"

String s = st.replaceAll("\\["," ").replaceAll("\\]"," ").replaceAll(","," ");
于 2013-05-31T13:43:31.810 回答