【java】静态方法声明与调用习题

时间:2014-03-29 09:28:55   收藏:0   阅读:379
bubuko.com,布布扣
 1 public class dengd {
 2 static int getTt(int table[])
 3 {
 4 for(int b=0; b<table.length;b++)
 5     {
 6         System.out.print(table[b]+" ");
 7     }
 8         return 0;
 9 
10 }
11 public static void main(String args[])
12 {
13 
14     int tt[]={2,4,6,8,10};
15     getTt(tt);
16 }
17 
18 
19 }
bubuko.com,布布扣

输出  2 4 6 8 10

【java】静态方法声明与调用习题,布布扣,bubuko.com

原文:http://www.cnblogs.com/net-safe/p/3631304.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!