code054.jsp
package pack01;
//Convert�࣬������ת��Ϊ�ַ���
public class code054
{
public String arrToString(String[] arr)
{
StringBuffer buffer = new StringBuffer();
if (arr != null && arr.length > 0)
{
for (String s : arr)
{
buffer.append(s);
buffer.append(","); //Ӣ�Ķ���
}
if (buffer.length() > 0)
{
buffer = buffer.deleteCharAt(buffer.length() - 1); //��������Ķ���ȥ��
}
}
return buffer.toString();
}
}