class Test15 {
public static void main(String[] args) {
int []arr={11,22,13,54,33,1,3};
StringBuilder sb=new StringBuilder();
for(int i=0;i<arr.length;i++){
if(i==0)
sb.append("\""+arr[i]);
else if(i==arr.length-1)
sb.append(","+arr[i]+"\"");
else
sb.append(","+arr[i]);
}
System.out.println(sb.toString());
}
}
|
|