mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
16 lines
320 B
Java
16 lines
320 B
Java
// "Replace with sum()" "true"
|
|
|
|
public class Main {
|
|
public double test(String[][] array) {
|
|
double d = 10;
|
|
for(String[] arr : arra<caret>y) {
|
|
if(arr != null) {
|
|
for (String a : arr) {
|
|
if (a.startsWith("xyz"))
|
|
d = d + 1.0/a.length();
|
|
}
|
|
}
|
|
}
|
|
return d;
|
|
}
|
|
} |