摘要:
参考博客: https://blog.csdn.net/wuyuxing24/article/details/105172184 public class TestWait { public static void main(String[] args) { Thread thread = new 阅读全文
摘要:
其中IO流是最经典的装饰器模式的使用 利用装饰器模式自己实现读取文本 public class MyBufferReader extends Reader{ private Reader in; public MyBufferReader(Reader reader) { this.in = rea 阅读全文