From 6f936dffa1507f56aae07fe13effeb78bfa9ad1f Mon Sep 17 00:00:00 2001 From: Joe <736777445@qq.com> Date: Wed, 18 Sep 2019 21:33:29 +0800 Subject: [PATCH] Update 10-Interfaces.md --- docs/book/10-Interfaces.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/10-Interfaces.md b/docs/book/10-Interfaces.md index 927861c..a1f487a 100644 --- a/docs/book/10-Interfaces.md +++ b/docs/book/10-Interfaces.md @@ -857,7 +857,7 @@ package interfaces.filters; public class Waveform { private static long counter; - private final long id = count++; + private final long id = counter++; @Override public String toString() { @@ -1041,7 +1041,7 @@ class FilterAdapter implements Processor { } } -punlic class FilterProcessor { +public class FilterProcessor { public static void main(String[] args) { Waveform w = new Waveform(); Applicator.apply(new FilterAdapter(new LowPass(1.0)), w);