Exercise 05: Using The Enhanced For Statement

Date completed: 21/12/2017

Write an application that uses an enhanced for statement to sum the double values passed by the command-line arguments. [Hint: Use the static method parseDouble of class Double to convert a String to a double value.]

The Created Code

The created source code can be found here. It has been compressed in to a 7-Zip file.

Some screen prints

Description Screen Print Out
The output from the created code as seen in the command prompt. java_s06_ex05 image