首页 > 其他 > 详细

Call me, maybe?

时间:2016-06-22 18:36:53      阅读:237      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!