Zainicjuj listę w Javie w jednej linii
var strings = List.of("foo", "bar", "baz");
Expensive Eagle
var strings = List.of("foo", "bar", "baz");