Created
September 13, 2014 18:21
-
-
Save forax/ddf39fd28383dd5c72fd to your computer and use it in GitHub Desktop.
To infiny and beyond ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.function.IntFunction; | |
import java.util.stream.Collectors; | |
public interface SayHi { | |
public static void main(String[] args) { | |
IntFunction<String> fun = s -> new Random(s) | |
.ints(6, 0, 27) | |
.filter(v -> v != 0) | |
.mapToObj(v -> "" + (char)('`' + v)) | |
.collect(Collectors.joining("")); | |
System.out.println(fun.apply(-229985452)); | |
System.out.println(fun.apply(-2081939528)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fun!Long Life devoxx and lamba