public class demo1{
public static void main(String[] args) {
int arr[]= {1,2,3,4,5,6,7,8,9};
int c[]=copy (arr,3,7);
for(int i=0;i<c.length;i++ ) {
System.out.print(c[i]+" ");
}
}
public static int[] copy (int arr[],int from,int to) {
int index=0;
int newarr[]=new int[to-from];
for(int i=from;i<to;i++) {
newarr[index]=arr[i];
index++;
}
return newarr;
}
宏宇、萨米特、新明珠、金意陶、简一、科达、力泰、道氏、SITI B&T、POPPI……35家参展商发布亮点
2024-05-13 01:40:07 30 阅读