Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能改变string
string
st = "[123, 123, 134, 90]"
进入
s = "123 123 134 90"
用。。。来代替 ””
用。。。来代替 ” ”
感谢 Maroun Maroun
String st = "[123, 123, 134, 90]"
String s = st.replaceAll("\\["," ").replaceAll("\\]"," ").replaceAll(","," ");