Languages & Environments



Download 2.16 Mb.
Page9/10
Date28.05.2018
Size2.16 Mb.
#51457
1   2   3   4   5   6   7   8   9   10

Code example: Java


In this example of the Java programming language, there are three methods defined within the average class: fillarray() which returns an integer array, average() which returns an integer value and the main method which calls fillarray() and average() and displays the average of the values in the array.






Download 2.16 Mb.

Share with your friends:
1   2   3   4   5   6   7   8   9   10




The database is protected by copyright ©ininet.org 2024
send message

    Main page