Created
August 29, 2016 12:07
-
-
Save r-winkler/6cbe88548938ea0caf53200ec59ff00e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public double totalAmount(List<Items> items) { | |
double total = 0.0; | |
for (item : items) { | |
total += item.getPrice(); | |
} | |
return total; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment