摘要: 定义: (1)数组:把相同类型的元素放在一段存储空间中 (2)特点:索引从0开始,数值有序 (3)定义格式 一维数组: A:数据类型[] 数组名; int[] arr ; B:数据类型 数组名[]; ... 阅读全文
posted @ 2017-04-01 18:10 2637282556 阅读(128) 评论(0) 推荐(0) 编辑
摘要: java方法定义方法名:参数列表:参数的个数,参数的类型返回值类型:结果的数据类型访问修饰符:public>protected>default>private异常:状态修饰符:static ,final ,2.方法特点:不调用不执行,方法之间平级关系1)方法重载 ... 阅读全文
posted @ 2017-04-01 11:29 2637282556 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1:switch语句 (1)格式: switch(表达式) { case 值1: 语句体1; ... 阅读全文
posted @ 2017-04-01 02:55 2637282556 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 5.第一题 int x = 1,y = 1;if(x++==2 & ++y==2) { x =7; } System.out.println(“x=”+x+”,y=”+y); 输出:x=2,y=2第二题 int x = 1,y = 1;if(x++==2 ... 阅读全文
posted @ 2017-04-01 02:33 2637282556 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 运算符中需要注意点几点1.&&,&,||,|的区别 &&:如果左边false,不就行后边的判断,返回false ||:如果左边true,不就行后边的判断,返回true &:如果左边false,还继续后边的判断,返回false |:如果左边true,还继续后边的判... 阅读全文
posted @ 2017-04-01 02:08 2637282556 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1.JDK,JRE,JVM的作用及关系 (1)作用 JVM:保证Java语言跨平台 JRE:Java程序的运行环境 JDK:Java程序的开... 阅读全文
posted @ 2017-04-01 00:50 2637282556 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1原理图 2代码实现 1)package cn.zhou.common.web.aop;import java.io.StringWriter;import java.util.Map;import java.util.Map.Entry;import java.ut... 阅读全文
posted @ 2017-03-31 22:37 2637282556 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1:原理图 2代码实现 1)接口代码package cn.zhou.common.web.session;import java.io.Serializable;import javax.servlet.http.HttpServletRequest;import j... 阅读全文
posted @ 2017-03-31 22:35 2637282556 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.Server Tomcat v7.0 Server at localhost failed to start. 严重: A child container failed during start java.util.concurrent.ExecutionExce... 阅读全文
posted @ 2017-03-30 15:42 2637282556 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 1:安装 1)手动安装 2)在线安装2配置介绍 [root@fei ~]# more /etc/sysconfig/memcached PORT=”11211” 端口 USER=”memcached” 用户 MAXCONN=”1024” 最大连接数... 阅读全文
posted @ 2017-03-28 20:35 2637282556 阅读(398) 评论(0) 推荐(0) 编辑