close
st = st.replaceAll("\\s+","");

出處:Removing whitespace from strings in Java - Stack Overflow

 

arrow
arrow

    Robert 發表在 痞客邦 留言(0) 人氣()