- 浏览: 223710 次
- 性别:
- 来自: 上海
-
最新评论
-
junzi2013:
df
黑马程序员:MyEclipse9 常用快捷键 中英文对照 及 快速get set方法 -
junzi2013:
dfsdafadsfsd
黑马程序员:MyEclipse9 常用快捷键 中英文对照 及 快速get set方法 -
idealab:
博主说的OpenCSV, JavaCSV, SuperCSV都 ...
csv调研 -
tanxin:
楼主怎么解决这个问题的呢?
坑爹的zookeer -
yy22258867:
:twisted:
黑马程序员19-7:foreach遍历核心源码,遍历HashMap需要用map.keySet()或map.entrySet()
文章列表
List集合按照时间升序进行排列
- 博客分类:
- JavaEE
package com.lee.compare;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import com.lee.model.User;
import com.lee.model.User2;
public class CompareList {
@Test
public ...
package weibo4j.examples.friendships;
import weibo4j.Friendships;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.User;
import weibo4j.model.UserWapper;
import weibo4j.model.WeiboException;
public class GetFollowersById {
public static void main(String[] args) {
String acc ...
preface
Wow! As I write this, it’s been almost seven years since Spring 1.0 was released and Ryan Breidenbach and I started work on the first edition of Spring in Action. Back then, who would have guessed that Spring would transform Java development as much as it has?
你妹啊!当我写下这行 ...
http://www.blogjava.net/chenlb/archive/2012/03/12/128925.html
http://www.thinksaas.cn/group/topic/120/
http://blog.csdn.net/chenjianhui2122/article/details/8205012
http://www.linuxidc.com/Linux/2012-09/71430.htm
http://www.linuxidc.com/Linux/2012-09/71430.htm
select status, count(status),langtype
from card.card_verify
group by status, langtype
having status in(30,31,1)
union
select status, count(status),3 as langtype
from card.card_verify
where status = 30
and langtype = 0 and part!=1 and pre_verify_user<0 and verify_type>0
supercsv:下面这个不能用
试用了中文的几个1.5版的代码,都是乱码,这个工程08年的,很久没更新了
对应的jar,SuperCSV-1.52.jar
public class OperateCsv {
/**
* 读取csv文件(不带头部)
*
* @param file File
* @return csv文件组装成list
* @throws IOException
*/
public List<String[]> getContentFromFile(File file) throws IOException ...
输出本机编码环境:UTF-8
System.out.println(Charset.defaultCharset().displayName());
冲突包:
<dependency>
<groupId>com.jingwei</groupId>
<artifactId>biz-passport</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.jingwei</groupId>
<artifactId> ...
Set<Long> idsSet = new HashSet<Long>();
//过滤没有详情的id
for(Entry<Long, UserProfile> entry : userProfileMap.entrySet()){
UserProfile userProfile = entry.getValue();
if (userProfile == null) {
continue;
}
idsSet.add(userProfile.getUserId());
}
Long[ ...
要想自己以ip的方式访问本机,resin的配置
<host id="" root-directory=".">
<web-app id="/" document-directory="D:\eclipse\workspace-jee\20130107\biz\src\main\webapp">
</web-app>
</host>
要想提供给别人访问,需要别人修改他的Host
我的ip:访问地址
由于包冲突,或者一开始加载一些不用到的包导致的异常,可以在配置文件中加上default-lazy-init="true",让项目用到哪个bean再加载。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns ...
package com.lee.list;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.lee.model.Person;
public class ListAddChangeList {
/*[com.lee.model.Person@2510bb7, com.lee.model.Person@16d81c91]
[com.lee.model.Person@2510bb7, com.lee.model.Person@16d8 ...
wiki中的算法,改用了list做
package com.lee.sort;
import java.util.ArrayList;
import java.util.List;
public class HeapSort2List2 {
private static List<Integer> sort = new ArrayList<Integer>();
public static void main(String[] args) {
sort.add(3);
sort.add(1);
sort. ...
/**
* @Description: 统计每个小时的top情况,返回当前小时List中的前三名
* @From: buildPersonalSimpleStaticsList
* @Parameters: :
* @Author:lijiandong, jiandong.li@renren-inc.com
* @Version: 1.0 2013-4-15下午05:13:24
*/
private List<PersonalSimpleStatistics> statTop(List<PersonalSimpleStatistics ...