- 博客(5)
- 收藏
- 关注
原创 java基础知识(学习整理)——单列集合Controller
集合 Iterator 迭代器 存储类型为引用类型 Collection<Object>中的Object得是所有基本类型的包装类 接口collection 单列 不提供此接口的任何直接实现,提供具体的子接口(如List和Set)实现 Collection<String> c = new ArrayList<String>; Colllection集合常用方法: boolean add(E e);添加元素 boolean remo...
2021-08-27 11:29:43
175
转载 jsp页面乱码问题
转:https://www.cnblogs.com/cyy-13/p/5882051.html jsp页面显示中文乱码: jsp页面的编码方式有两个地方需要设置: <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@ page contentType="text/html;char...
2018-12-18 15:32:09
187
原创 Page-encoding specified in XML prolog (UTF-8) is different from that specified in page directive ...
Page-encoding specified in XML prolog (UTF-8) is different from that specified in page directive (utf-8)将项目移植到myeclipse8后,访问页面是出现以上错误提示,查阅相关资料后,猜测可能是因为tomcat版本的原因(项目之前是使用的tomcat7,后来换成了tomcat6).WEB-INF...
2018-07-01 22:18:12
1935
原创 java数据结构之单链表的实现
借鉴http://www.cnblogs.com/lixiaolun/p/4643886.html思路初始化单链表,采用尾插法插入元素,打印该链表采用相同的思路对链表进行了删除、获取链表长度、获取链表的第i个元素以及判断某元素是否存在该链表中等操作public class LinkList { class Element{//结点 public Object value = null ; ...
2018-07-01 19:46:08
600
转载 java数据结构之顺序链表的实现
//删除链表中的元素 public void delete(Object o){ for(int i=0;i<curIndex;i++){ if(SqList[i].equals(o)){ for(int j=i;j<curIndex-1;j++){ SqList[j]=SqList[j+1]; } curIndex--; cont...
2018-07-01 19:33:05
376
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人