You are viewing a single comment's thread. Return to all comments →
This is my code for Java 15 :-
public static int simpleArraySum(List<Integer> ar) { int sum = 0; for(int i: ar) sum+=i; return sum; }
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 →
Java 15
This is my code for Java 15 :-