public class ArrayTest {
public static void main(String[] args) {
int[] arr = new int[]{1,5,0,2,3,6,8};
int[] index = new int[]{0,1,2,3,4,5,6,2,3,6,6};
String tel = "";
for(int i = 0;i < index.length;i++){
tel += arr[index[i]];
}
System.out.println("联系方式:" + tel);
}
}