personList = new ArrayList(); int i = 1; Person person = new Person(); person.setId(i++); person.setName("张三"); person.setAge(20); person.setSex("男".....
分类:
其他好文 时间:
2015-06-02 16:56:55
阅读次数:
101
job PWD
http://www.ganji.com/vip/findjob/my_resumes_list.php
http://my.58.com/
赣州
http://www.0797rs.com yeronggui char 同
赣江人才[http://www.ganjiangrc.com ] 用户:4018 @ 163 密:char
http:/...
分类:
其他好文 时间:
2015-06-02 15:23:59
阅读次数:
135
首先看这两类都实现List接口,而List接口一共有三个实现类,分别是ArrayList、Vector和LinkedList。List用于存放多个元素,能够维护元素的次序,并且允许元素的重复。
3个具体实现类的相关区别如下:
1.ArrayList是最常用的List实现类,内部是通过数组实现的,它允许对元素进行快速随机访问。数组的缺点是每个元素之间不能有间隔,当数组大小不满足时需要增加存储...
分类:
编程语言 时间:
2015-06-02 15:21:40
阅读次数:
111
【前话】 编译原理的第一个实验——词法分析器验收时,老师要求最后的结果用GUI的形式表现出来。想想确实,黑白的控制台应用程序界面在用户操作时的确不如GUI 友好。GUI界面也算是大势所趋。我现在掌握三种语言的基本语法——c/c++、Java和python。python好久之前学过然后没用就忘记了,最...
分类:
编程语言 时间:
2015-06-02 15:02:12
阅读次数:
152
MVC动态生成的表单:表单元素比较多 你就这样写:public ActionResult ShoudaanActionResult(FormCollection from,T_UserM user) { List daan = new List(); ...
分类:
Web程序 时间:
2015-06-02 14:58:43
阅读次数:
108
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.本题是多链表融合,可以选择利用归并算法思想,两两链表融合后再归并,也可以一起融合。本文是一起融合的想法,利用...
分类:
其他好文 时间:
2015-06-02 13:19:13
阅读次数:
106
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are labeled u...
分类:
编程语言 时间:
2015-06-02 12:56:58
阅读次数:
175
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td,img,u,i {list-style:none;padding:0;margin:0;}img,inpu...
分类:
其他好文 时间:
2015-06-02 12:54:19
阅读次数:
141
首先封装邮件实体,协议采用SMTP:importjava.util.List;
importjavax.mail.internet.InternetAddress;
/**
*邮箱实体类
*@authorAdministrator
*
*/
publicclassEmailInfo{
//邮箱对应SMTP的服务器的地址
privateStringsmtpHost;
//邮箱的用户名
privateStringuser;
pr..
分类:
编程语言 时间:
2015-06-02 11:27:15
阅读次数:
138
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
解题思路:
1、解法1,用se...
分类:
其他好文 时间:
2015-06-02 11:20:46
阅读次数:
100