List list = Arrays.asList(new Point(1, 5), new Point(2, 3),new Point(2, 8), new Point(9, 13));int sum = list.get(0).y - list.get(0).x,currenty=list.ge...
分类:
其他好文 时间:
2014-06-28 19:25:36
阅读次数:
183
最近项目要一个批量导出功能,而且要生成一个单独的sheet页,最后后面所有sheet的索引,并且可以点击进入连接。网上搜索了一下,找到一个方法,同时把相关的excel导入导出操作记录一下!以便以后使用!简单先写一下目录的建立的主要代码,测试用的List ls = new ArrayList();//...
分类:
编程语言 时间:
2014-06-28 18:11:24
阅读次数:
354
在我们的应用程序中我们使用类描述我们的业务对象,为我们产生一些报表之类的,那就依赖大量不同的对象,我们创建一个帮助方法来转换我们的业务对象,或是一个List的业务对象到DataTables.由于数据库表中字段可为null,对应.net 2.0以后我们可用Nullable类型来实现,那当我们业务对象类...
分类:
其他好文 时间:
2014-06-28 18:07:35
阅读次数:
210
Ubuntu安装配置Mysql三种安装方式: 1. 从网上安装 sudo apt-get install mysql-server。装完已经自动配置好环境变量,可以直接使用mysql的命令。 注:建议将/etc/apt/source.list中的cn改成us,美国的服务器比中国的快很多。 ...
分类:
数据库 时间:
2014-06-28 14:43:17
阅读次数:
253
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Analysis: typical Runner Technique. 一次过 1 ...
分类:
其他好文 时间:
2014-06-28 13:44:51
阅读次数:
164
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?一次...
分类:
其他好文 时间:
2014-06-28 13:38:14
阅读次数:
171
对于ArrayAdapter,里面虽然能添加图片,但只能是相同的图片。废话不多说:布局&&list的item布局 程序 private static String[] names= {"功能1","功能2","功能3","功能4","功能5"}; @Override ...
分类:
移动开发 时间:
2014-06-28 13:24:17
阅读次数:
302
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-06-28 13:23:40
阅读次数:
150
首先定义个Person类:1 public class Person2 {3 public string Name{get;set;} //姓名4 public int Age{get;set;} //年龄5 }定义好List,并添加几条数据:1 List lstPerson=new List(.....
分类:
其他好文 时间:
2014-06-20 15:51:08
阅读次数:
251
3,排序 默认是相关度排序。 也可以按指定的字段排序。 1 package cn.itcast.g_sort; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.apache.lucene....
分类:
其他好文 时间:
2014-06-20 15:39:27
阅读次数:
203