java functional programming with static import

Run Settings
LanguageJava
Language Version
Run Command
import java.util.function.Supplier; import java.util.stream.Stream; import static java.lang.System.out; /* * */ public class Main { /* * */ public static void main(String[] args) { out.println("Hello World!"); out.println(((Supplier<Main>) Main::new).get().iExist()); Stream.of("First String", "Second String", "Third String").map(stringInTheStream -> stringInTheStream + stringInTheStream + stringInTheStream).forEach(out::println); } /** * Proof of existence of {@code this}. */ public String iExist() { return "i exist!!!!°!\nI am: " + this; } }
Editor Settings
Theme
Key bindings
Full width
Lines