diff --git a/docs/book/14-Streams.md b/docs/book/14-Streams.md index 5e56e29..142079a 100644 --- a/docs/book/14-Streams.md +++ b/docs/book/14-Streams.md @@ -54,7 +54,7 @@ public class ImperativeRandoms { Random rand = new Random(47); SortedSet rints = new TreeSet<>(); while(rints.size() < 7) { - int r = rand.nextint(20); + int r = rand.nextInt(20); if(r < 5) continue; rints.add(r); }