发布网友 发布时间:2024-10-24 18:27
共1个回答
热心网友 时间:2024-11-06 07:41
public class YuGiOh
{
private Object join ( String[] selectOptions, char c )
{
String result = "";
for ( String string : selectOptions )
{
result += string + c;
}
return result.replaceAll (c + "$", "");
}
public static void main ( String[] args )
{
YuGiOh yuGiOh = new YuGiOh ();
System.out.println (yuGiOh.join (new String[] { "verticalSearchForm,criteriaFilter,industry" }, ','));
}
}