fork download
  1. import java.util.List;
  2.  
  3. class Ideone {
  4. public static void main(String[] args) {
  5. List.of("foo", "bar", "baz")
  6. .forEach(entry -> System.out.println("- " + entry));
  7. }
  8. }
Success #stdin #stdout 0.09s 36088KB
stdin
Standard input is empty
stdout
- foo
- bar
- baz