Here you can find the source of mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray)
public static String mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray)
//package com.java2s; //License from project: Apache License import javax.management.MBeanAttributeInfo; public class Main { public static String mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray) { StringBuilder sb = new StringBuilder("["); if (attributeInfoArray == null || attributeInfoArray.length == 0) { sb.append("]"); return sb.toString(); }/*from ww w . j av a 2s . c o m*/ sb.append(attributeInfoArray[0].getName()); for (int i = 1; i < attributeInfoArray.length; ++i) { sb.append(",").append(attributeInfoArray[i].getName()); } sb.append("]"); return sb.toString(); } }