Integer[] arr = {1,2,3,4,5}; String str = ""; for (Integer i : arr) { str += i+","; } str = str.substring(0,str.length()-1); System.out.println(str);
Integer[] arr = {1,2,3,4,5}; String str = ""; for (Integer i : arr) { str += i+","; } str = str.substring(0,str.length()-1); System.out.println(str);