From 2db1dbc82daa2c264245143694c57150cae1330b Mon Sep 17 00:00:00 2001 From: tangsw Date: Sun, 24 Nov 2019 13:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A0=E6=AD=A3=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/book/14-Streams.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }