mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-163405 Migration from Stream API back to for loops: iteration#2
This commit is contained in:
+2
-2
@@ -8,8 +8,8 @@ public class Main {
|
||||
int sum = 0;
|
||||
for (String s : list) {
|
||||
System.out.println(s);
|
||||
int i = s.length();
|
||||
sum += i;
|
||||
int length = s.length();
|
||||
sum += length;
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user