摘要:
import java.util.ArrayList;import java.util.Iterator;import java.util.List;/*** 遍历数组四种方法** @author JRunner** 2009-10-26** Email:JRunner@126.com*/class Test {/** * * 注:Iterator 迭代器 * * @param args */public static void main(String[] args) {Test1 t = new Test1();Test1 t1 = new Test1();List list = new A 阅读全文
摘要:
Java中Listener监听器作用1.1 Listener对象分类Servlet的Listener监听器包括三种类型:1、ServletContextListener 监听ServletContext对象Java代码publicvoidcontextInitialized(ServletContextEvent event); publicvoidcontextDestoryed(ServletContextEvent event);Java代码publicvoidcontextInitialized(ServletContextEventevent);publicvoidcontextDe 阅读全文