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删除。