摘要:
1、javaIO系统的设计使用了装饰器模式:很少使用单个类来创建对象,而是通过叠合对各对象来提供所需要的功能。(将多个对象层叠在一起,才能得到自己想要的对象)。 inputStream 中read()和ouputStream 中的write()一字节或字节数组读写数据,不是经常使用的方法,而是用为... 阅读全文
摘要:
在看项目的时候,看到这样的代码:List instances = new ArrayList();instances =impl.selectInstacne();Map map = new HashMap();List itemids = new ArrayList();if(instances.... 阅读全文