You are viewing a single comment's thread. Return to all comments →
this is my solution with java
public static int simpleArraySum(List ar) { int suma = 0; for(int i = 0; i < ar.size(); i++){ suma+=ar.get(i); }
return suma; }
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
this is my solution with java
public static int simpleArraySum(List ar) { int suma = 0; for(int i = 0; i < ar.size(); i++){ suma+=ar.get(i); }