fix tests for foreach formatting

This commit is contained in:
Roman.Ivanov
2018-06-05 11:31:17 +07:00
parent 8e9ab59fc8
commit 5858ba478c
85 changed files with 280 additions and 280 deletions

View File

@@ -8,7 +8,7 @@ public class Main {
public void test(List<String> list) {
long i = 0L;
for (String s : list) {
for (String s: list) {
if (s.isEmpty()) {
i++;
}
@@ -21,7 +21,7 @@ public class Main {
{
long j = 0L;
for (String s : list) {
for (String s: list) {
if (s.isEmpty()) {
j++;
}
@@ -36,7 +36,7 @@ public class Main {
System.out.println(j);
StringJoiner joiner = new StringJoiner(",");
for (String s1 : list) {
for (String s1: list) {
joiner.add(s1);
}
for(String s = joiner.toString(); !s.isEmpty(); s = s.substring(1)) {