logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    sfolax6776
    Feb 20, 2020
      ·  Edited: Feb 20, 2020

    7.5 How to create a function to return the average values of an array?

    in Introduction to Java

    A. Introduction

    The output of a function is the "returned" value. When defining the function, we have to specify the type of values returned. A function can either return a single value or an array.

    B. What does a function return?

    The return type of a method indicates the type of value that the method sends back to the calling location

    A method that does not return a value has a void return type. The return statement specifies the value that will be returned. For example,


    C. Try: create a function to return the average values of an array

    0 comments
    0
    0 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners