Here you can find the source of arrayToString(Object[] objs)
Parameter | Description |
---|---|
objs | a parameter |
public static String arrayToString(Object[] objs)
//package com.java2s; public class Main { /**/* w w w. j a va 2s . c o m*/ * * @param objs * @return */ public static String arrayToString(Object[] objs) { StringBuffer buffer = new StringBuffer(); if (objs != null) { for (int i = 0; i < objs.length; i++) { if (buffer.length() > 0) buffer.append("\n"); buffer.append(objs[i]); } } return buffer.toString(); } }