1、要求输出一个手机号:
public class Test {
public static void main(String[] args) {
int[] arr = new int[]{3, 7, 5, 4, 1, 0, 8};
int[] index = new int[]{4, 1, 6, 0, 2, 3, 4, 2, 0, 1, 5};
String tel = "";
for (int ars : index) {
tel += arr[ars];
}
System.out.println(tel);
}
}