Java 数组转字符

public static String toString(int[] arr){
	String temp = "";
	for(int i = 0;i<arr.length;i++){
		temp = temp + arr[i];
		if (i != arr.length-1) {
			temp = temp +",";
		}
	}
	return temp;
}

  

posted @ 2017-05-19 09:17  羊羊羊&#128017;  Views(133)  Comments(0Edit  收藏  举报