将字符串数组中的字符串拼接成一个字符串,中间以“,”分割;
example:
String[] str={"John","lily,","lily","lucy"};String objectStr="";for(int i=0;i
最后得到的拼接好的字符串为:objectStr="John,lily,lily,lucy"
本文共 214 字,大约阅读时间需要 1 分钟。
将字符串数组中的字符串拼接成一个字符串,中间以“,”分割;
example:
String[] str={"John","lily,","lily","lucy"};String objectStr="";for(int i=0;i
最后得到的拼接好的字符串为:objectStr="John,lily,lily,lucy"
转载于:https://www.cnblogs.com/zhaijing/p/7121346.html