标题: 电话号码 [打印本页] 作者: 18343105017 时间: 2016-6-22 22:47 标题: 电话号码 public class DemoBoostFor {
public static void main(String[] args) {
int[] arr= new int[]{8,4,1,0,3,5,7};
int[] index = new int[]{2,0,4,1,4,2,3,5,3,2,6};
String tel = "";
for (int i : index) {
tel+= arr[i];
}
System.out.println("联系方式为"+tel);
}
}