Java学习
文章平均质量分 61
Dajianganya
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java Thread yield()
package Thread;public class MyThread implements Runnable{ protected int countDown = 10; private static int taskCount = 0; private final int id = taskCount++; public MyThread(){} public原创 2015-04-21 22:08:32 · 365 阅读 · 0 评论 -
Object.wait()
package JUC;/** * Causes the current thread to wait until either another thread invokes the * {@link java.lang.Object#notify()} method or the * {@link java.lang.Object#notifyAll()} method for t原创 2015-08-12 15:32:30 · 518 阅读 · 0 评论 -
String 和 StringBuffer
String StringBuffer 性能比较原创 2015-07-21 11:12:12 · 402 阅读 · 0 评论 -
Java 堆排序
public class Heap { /** * 根据给定的数组以及 数组的取值范围 lastIndex 构造大顶堆; * 步骤: * 1.从最后一个非叶子节点((lastIndex-1)/2)开始往上遍历所有的非叶子节点((lastIndx-1)/2,.....,0) * 2.对于每一个非叶子节点K * 2.1 判断是否含有孩子节点,并找到比K节点值大的最大原创 2015-08-21 14:12:04 · 377 阅读 · 0 评论
分享