Call me, maybe?
Hey, I just met you,
and this is crazy,
but here's my number
so call me, maybe?
1 @Test 2 public void testTel(){ 3 4 int[]arr=new int[]{8,2,1,5,7,4,9}; 5 int[]index=new int[]{2,0,1,1,2,6,3,0,5,4,6}; 6 7 String tel=""; 8 for(int i:index){ 9 tel+=arr[i]; 10 } 11 System.out.println("My Number is:"+tel); 12 }
作者:null-npe 出处:https://www.cnblogs.com/npe 由于作者个人水平有限,如果文中有什么错误,欢迎指出。以免更多的人被误导。 |