Create a gist now

Instantly share code, notes, and snippets.

Embed
To infiny and beyond ...
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));
}
}
@itsmyr4bbit

This comment has been minimized.

Show comment
Hide comment
@itsmyr4bbit

itsmyr4bbit Apr 24, 2015

Fun!Long Life devoxx and lamba

Fun!Long Life devoxx and lamba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment