What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-06 18:15:02
calculate average java
Just some minor modification to your code will do (with some var renaming for clarity) : double sum = 0; //average will have decimal point for(int i=0; i < args.length; i++){ //parse string to double, note that this might fail if you encounter a n... Add solution