码迷,mamicode.com
首页 > 其他好文 > 详细

Call me, maybe?

时间:2016-06-22 18:38:22      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:

  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     }

 

Call me, maybe?

标签:

原文地址:http://www.cnblogs.com/geekdc/p/5608062.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!