上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 一、概述 JSP是一种建立在Servlet规范功能上的动态网页技术,在网页文件中嵌入Java代码和JSP标记用于产生动态内容。 本文简单介绍JSP的运行机制和JSP的语法。二、JSP的运行机制 JSP文件在用户第一次请求时,会被编译成Servlet,再由这个Servlet处理用户的请求。 ... 阅读全文
posted @ 2015-06-05 21:38 温布利往事 阅读(6449) 评论(0) 推荐(1) 编辑
摘要: 一、摘要 本文主要简单介绍开发Servlet需要用到的接口和类。二、ServletRequest和ServletResponse接口 当客户请求到来时,由容器创建一个ServletRequest对象,封装请求数据,同时创建一个ServletResponse对象,封装响应数据。这两个对象作为参数传... 阅读全文
posted @ 2015-05-28 16:06 温布利往事 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: 一、前言 Java Servlet是一个基于Java技术的Web组件,运行在服务器端,由Servlet容器所管理,用于生成动态的内容。Servlet是平台独立的Java类,编写一个Servlet实际上就是按照Servlet规范编写一个Java类。 Servlet运行需要一个运行环境,即需要一个S... 阅读全文
posted @ 2015-05-21 20:21 温布利往事 阅读(36366) 评论(0) 推荐(0) 编辑
摘要: 一、概述 XML全称为可扩展的标记语言。主要用于描述数据和用作配置文件。 XML文档在逻辑上主要由一下5个部分组成:XML声明:指明所用XML的版本、文档的编码、文档的独立性信息文档类型声明:指出XML文档所用的DTD元素:由开始标签、元素内容和结束标签构成注释:以结束,用于对文档中的内容起一个... 阅读全文
posted @ 2015-05-05 20:35 温布利往事 阅读(7382) 评论(1) 推荐(0) 编辑
摘要: 题目:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical... 阅读全文
posted @ 2015-05-02 16:07 温布利往事 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 一、概述 正则表达式是一串描述一个字符序列的字符,可以用来查找其他字符序列中的匹配项。支持正则表达式处理的是两个类:Pattern和Matcher,使用Pattern定义正则表达式,使用Matcher匹配其他序列中的模式。二、创建正则表达式 创建正则表达式就是创建一个特殊的字符串。 正则表达式... 阅读全文
posted @ 2015-04-29 16:24 温布利往事 阅读(2721) 评论(3) 推荐(1) 编辑
摘要: 一、概述 Java的IO支持通过java.io包下的类和接口来完成,在java.io包下主要有包括输入、输出两种IO流,每种输入输出流又可分为字节流和字符流两大类。从JDK1.4以后,Java在java.nio包下提供了系列的全新API,通过java.nio,程序可以更高效的进行输入、输出操作。二... 阅读全文
posted @ 2015-04-23 18:59 温布利往事 阅读(1101) 评论(0) 推荐(1) 编辑
摘要: 一、概述Java是以String类型的对象来实现字符串。String是一个类,当创建一个String对象后,所创建的字符串是不能改变的。在需要使用可修改的字符串时,Java提供两个选择—StringBuffer和StringBuilder。注:声明为String引用的变量在任何时候都可以改变,以指向... 阅读全文
posted @ 2015-04-18 17:33 温布利往事 阅读(18240) 评论(0) 推荐(0) 编辑
摘要: 1、多线程概述当一个程序运行时,内部可能包含了多个顺序执行流,每个顺序执行流就是一个线程。主要以下几个优点:线程之间很容易实现共享内存创建线程代价较小Java语言内置多线程功能支持2、线程的创建和启动所有的线程对象都是Thread类或其子类的对象,每一个线程完成一定的任务。Java定义了两种创建线程... 阅读全文
posted @ 2015-04-16 10:50 温布利往事 阅读(1304) 评论(1) 推荐(1) 编辑
摘要: 题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in... 阅读全文
posted @ 2015-04-08 14:39 温布利往事 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't ... 阅读全文
posted @ 2015-04-07 09:24 温布利往事 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo... 阅读全文
posted @ 2015-04-03 14:46 温布利往事 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your al... 阅读全文
posted @ 2015-04-02 09:20 温布利往事 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 1 str... 阅读全文
posted @ 2015-04-01 09:22 温布利往事 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a linked list, remove thenthnode from the end of list and return its head.For example: Given linked list: 1->2->3->4->5, and n = 2. After... 阅读全文
posted @ 2015-03-31 14:54 温布利往事 阅读(325) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页