![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java学习
文章平均质量分 77
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 · 307 阅读 · 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 · 438 阅读 · 0 评论 -
String 和 StringBuffer
String StringBuffer 性能比较原创 2015-07-21 11:12:12 · 344 阅读 · 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 · 327 阅读 · 0 评论