首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

小弟我才学Java` 求大哥们帮帮忙吧!小弟我太菜了`

2012-01-29 
我才学Java` 求大哥们帮帮忙吧!我太菜了```writeaprogramthatwilltakenumbersfromafilecalledNumbers.txta

我才学Java` 求大哥们帮帮忙吧!我太菜了```
write   a   program   that   will   take   numbers   from   a   file   called   Numbers.txt   and   then   add   them   up,   and   give   out   their   average

还有两题。。

name   2   ways   of   initiating   an   integer   array   called   x.  

what   is   the   purpose   of   methods   in   Java?  
我英文不好-   -`不会说。。。
要用英文回答的。。


[解决办法]
write a program that will take numbers from a file called Numbers.txt and then add them up, and give out their average

写一个项目,从一个名叫Numbers.txt的文件中读出数据并将数相加.然后求出它们的平均值.


name 2 ways of initiating an integer array called x.

命名两个名字叫做x的integer的数组

what is the purpose of methods in Java?

在java中方法的目的是什么


[解决办法]
1.在文件Numbers.txt中存有数字,取之,相加求和,并输出其平均数。

2.Two ways are listed respectively below
i. int[] x;
ii. int x[];

3. Purpose is to set a pile of codes which is used to fulfil a unique function together inside a module called method. It makes the program more readable, more adjustable and easier to be amended. It appears as one of the encapsulation of the oo system.

热点排行