03 2015 档案

摘要:1. 2的10次方是多少? 2.65536是2的多少次方? 算着太累,折腾了一个小片段。 1 public class Sum2 { 2 final static int count =2; 3 //输入2的次方,获得2的次方的结果 4 public static i... 阅读全文
posted @ 2015-03-31 00:37 金色元年 阅读(416) 评论(0) 推荐(0)
摘要:1. Set中不保存重复的元素。 2.Set中最常用的是测试归属性,可以查询某个对象是否存在某个Set中。查找成了Set中最常用的操作。 3.HashSet使用了散列。TreeSet将元素存储在红-黑树数据结构中。如果你想对结果排序,一种方式是使用Treeset来代替Hashset4.如果要对结果... 阅读全文
posted @ 2015-03-24 15:36 金色元年 阅读(513) 评论(0) 推荐(0)
摘要:1 Map map = new HashMap(); 2 map.put(1, "a"); 3 map.put(2, "b"); 4 5 System.out.println("(1):"); 6 //1.Map输出... 阅读全文
posted @ 2015-03-22 15:16 金色元年 阅读(459) 评论(0) 推荐(0)
摘要:参考博客:http://www.open-open.com/lib/view/open1342167592890.htmlStruts2标签库包括:OGNLStruts2标签分类控制标签 :(if, elseif,else, iterator, append, merge, generator, s... 阅读全文
posted @ 2015-03-21 00:27 金色元年 阅读(283) 评论(0) 推荐(0)