mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
10 lines
175 B
Java
10 lines
175 B
Java
// "Replace with sum()" "true"
|
|
public class Main {
|
|
public int sum(int[] array) {
|
|
int sum = 0;
|
|
for(int x : arr<caret>ay) {
|
|
sum += x;
|
|
}
|
|
return sum;
|
|
}
|
|
} |