Loading

Quipoin Menu

Learn • Practice • Grow

java / Java Variable Arguments
exercise

Exercise Number: 1

Question

Write a method to calculate the sum of any number of integers using varargs.

Hint: The method should return the total sum. If no number is passed, it should return 0.