当前位置: 代码迷 >> J2SE >> 小弟我才学Java` 求大哥们帮帮忙吧!小弟我太菜了`
  详细解决方案

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

热度:133   发布时间:2016-04-24 14:58:13.0
我才学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.
  相关解决方案