public class 十个数 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] a = {1,5,6,8,4,3,8,2,6,7};
int [] b = new int [10];
System.out.print("{");
for (int c = 0; c<a.length; c++) {
System.out.print(a[c]);
if (c!=9) {
System.out.print(",");
}
}
System.out.println("}");
for (int c =0; c<a.length;c++) {
b[c]=a[c];
}
System.out.print("{");
for (int c = 0; c<b.length; c++) {
System.out.print(b[c]);
if (c!=9) {
System.out.print(",");
}
}
System.out.println("}");
}
}