ITeye博客

2014 年文章归档

共 4 篇文章

堆排序

堆排序有以下需要注意的: parent=n/2 left = 2 * n; right = 2 * n + 1; 对某一个节点进行最大堆化 maxHeap 然后构造堆 buildHeap 最后是堆排序 heapSort 具体代码: package com.taobao.saleengine.core.util; public class HeapSort2 { private static int left(int i) { return i * 2;} private static int right(int i) { return i * 2 + 1;} private static v…

2014-06-07 22:23 · java学习

java

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'historyIntentionService' defined in class path resource [beans/bean-core.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid proper…

2014-03-20 21:44 · java学习

git GUI使用

基本git GUI的基本操作在附件中,需要的话自己下载。

2014-03-19 13:46 · git

guava测试例子,取值和定时重新装载

package com.taobao.saleengine.core.processor.onlinelearning.service.impl; import static com.google.common.base.Preconditions.checkNotNull; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import com.google.common.cache.CacheBuilder; import com.google.common.cach…

2014-02-21 17:54 · java学习 · Cache · guava