Skip to content

Instantly share code, notes, and snippets.

@forax
Created September 13, 2014 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forax/ddf39fd28383dd5c72fd to your computer and use it in GitHub Desktop.
Save forax/ddf39fd28383dd5c72fd to your computer and use it in GitHub Desktop.
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));
}
}
@4ureli1
Copy link

4ureli1 commented Apr 24, 2015

Fun!Long Life devoxx and lamba

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