Menu
Coddy logo textTech

Recap Challenge #1

Lesson 14 of 16 in Coddy's Strings and Arrays in Java course.

challenge icon

Challenge

Easy

Write a function named sigma that gets an array of floats and returns the sum of all its elements.

Try it yourself

class Sigma {
    public static float sigma(float[] nums) {
        // Write code here
    }
}

All lessons in Strings and Arrays in Java