aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/java/for-each/com/example/ForEach.java
blob: 807927dc7e85195aab2641e49e8178c77648dfdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.example;

import static java.util.Arrays.asList;

public class ForEach {
    public static String value() {
        Iterable<String> values = asList("a", "b", "c");
        String result = "";
        
        for (String value : values) {
            result += value;
        }
        
        return result;
    }
}