summaryrefslogtreecommitdiff
path: root/Year_2/SE/L21_ex2/Main.java
blob: 6f077f9c0f8f272fdee140002a4efedf8686f6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<String> l = List.of("to", "speak", "the", "truth", "and", "pay", "your", "debts");
        l.stream()
            .map(x -> x.charAt(0))
            .forEach(c -> System.out.print(c));
    }
}