上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: Collections对List集合中的数据进行排序1.对于普通对象public static void main(String[] args) { List nums = new ArrayList(); nums.add(3); nums.add(5); n... 阅读全文
posted @ 2018-04-07 00:07 wei1 阅读(172) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/dolphin0520/p/3910667.html下面是本文的目录大纲: 一.操作系统中为什么会出现进程? 二.为什么会出现线程? 三.多线程并发一.操作系统中为什么会出现进程? 说起进程的由来,我们需要从... 阅读全文
posted @ 2018-04-04 16:24 wei1 阅读(202) 评论(0) 推荐(0)
摘要: 转自:http://blog.sina.com.cn/s/blog_145f07e7b0102x3dy.html虽然使用ExecutorService可以让线程处理变的很简单,可是有没有人觉得在结束线程运行时候只调用shutdown方法就可以了?实际上,只调用shut... 阅读全文
posted @ 2018-04-04 15:36 wei1 阅读(98) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/dolphin0520/p/3920397.html写的很好,有时间转过来作为笔记 阅读全文
posted @ 2018-04-03 21:25 wei1 阅读(97) 评论(0) 推荐(0)
摘要: 转自:http://blog.sina.com.cn/s/blog_175b3022e0102x4ti.html那么设计模式到底是什么?答:设计模式是一套被反复使用,多数人知晓,经过分类编目的的,代码设计经验的总结。特别要说的是:模式并不是代码,而是某类问题的通用解决... 阅读全文
posted @ 2018-04-03 10:37 wei1 阅读(107) 评论(0) 推荐(0)
摘要: 以下代码转自https://blog.csdn.net/ghsau/article/details/7421217class Count { public int num; public synchronized void increment() { num++; ... 阅读全文
posted @ 2018-04-03 10:25 wei1 阅读(533) 评论(0) 推荐(0)
摘要: public void flush() throws IOException刷新此输出流并强制写出所有缓冲的输出字节。flush 的常规协定是:如果此输出流的实现已经缓冲了以前写入的任何字节,则调用此方法指示应将这些字节立即写入它们预期的目标。 如... 阅读全文
posted @ 2018-03-06 00:19 wei1 阅读(1992) 评论(1) 推荐(1)
摘要: 作者:王见充链接:https://www.zhihu.com/question/21632236/answer/18824702来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。是HTML写法。是XHTML1.1的写法,也是XML写法。是X... 阅读全文
posted @ 2018-03-03 12:01 wei1 阅读(257) 评论(0) 推荐(0)
摘要: map = new HashMap(); map.put("a", "aa"); map.put("2", "bb"); map.put("3", "cc"); pageContext.setAttribute("map", map); %> Map1:$... 阅读全文
posted @ 2018-02-28 20:04 wei1 阅读(1480) 评论(0) 推荐(0)
摘要: jsp中的out.println();为什么换行?out.print("劝君");out.println("更尽");out.println("一杯酒");页面显示:劝君更尽 一杯酒 查看源码:得知,println()将html文本换行了,但是页面显示换行需要 劝君更... 阅读全文
posted @ 2018-02-28 17:31 wei1 阅读(294) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页