Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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));
}
}

Fun!Long Life devoxx and lamba

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