Stirng attach_id = "a,da,dsa,rew,rew,dsa";
String[] arr=new String(attach_id).split("[\\,]"); //用split對一個字符串按逗號分割成數組
String str = Arrays.toString(arr); //str數組
Stirng attach_id = "a,da,dsa,rew,rew,dsa";
String[] arr=new String(attach_id).split("[\\,]"); //用split對一個字符串按逗號分割成數組
String str = Arrays.toString(arr); //str數組
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。