随笔分类 -  bak

摘要:import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public class Testa { public static void main(String[] args) { List... 阅读全文
posted @ 2017-03-09 10:00 Orc_Warrior 阅读(433) 评论(0) 推荐(0)
摘要:并发迭代的时候,用CopyOnWriteArrayList,有写操作时,效率低。 并发访问一个给定的collection时,ConcurrentHashMap比HashMap好,ConcurrentSkipListMap优于TreeMap, 阅读全文
posted @ 2017-03-08 17:34 Orc_Warrior 阅读(109) 评论(0) 推荐(0)
摘要:arpgconsole后台:http://127.0.0.1:8080/arpgconsole/main?l=zh_CN 阅读全文
posted @ 2017-03-08 09:27 Orc_Warrior 阅读(105) 评论(0) 推荐(0)
摘要:获取权限,切换到root用户: sudo su - 进入数据库: mysql -ufs -pfsdm2016 databasename 创建数据库表: CREATE DATABASE IF NOT EXISTS arpg_1045 DEFAULT CHARSET utf8 COLLATE utf8_ 阅读全文
posted @ 2017-03-07 18:02 Orc_Warrior 阅读(262) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-03-07 17:27 Orc_Warrior 阅读(556) 评论(0) 推荐(0)
摘要:import java.util.Arrays; public class BinaryHeap { public BinaryHeap( ) { this( DEFAULT_CAPACITY ); } public BinaryHeap( Comparable[] items ){ currentSize = i... 阅读全文
posted @ 2017-01-19 14:37 Orc_Warrior 阅读(196) 评论(0) 推荐(0)
摘要:/*********************************org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection**************************** 阅读全文
posted @ 2017-01-17 11:15 Orc_Warrior 阅读(132) 评论(0) 推荐(0)
摘要:mybatis:https://github.com/mybatis/mybatis-3/releases 深入浅出JMS(一)--JMS基本概念:http://blog.csdn.net/jiuqiyuliang/article/details/46701559 阅读全文
posted @ 2017-01-17 08:57 Orc_Warrior 阅读(90) 评论(0) 推荐(0)
摘要:1、Java-->Editor > Syntax Coloring修改类中的各种代码颜色 2、General-->Editors >Text Editors 阅读全文
posted @ 2017-01-16 11:14 Orc_Warrior 阅读(324) 评论(0) 推荐(0)
摘要:/** * 随机项 * @author healy * * @param <E> */ public class RandomEntry<E> { /**概率,单位%%(万分之)*/ private int probability; /**概率对应的物品*/ private E entry; pub 阅读全文
posted @ 2017-01-12 16:48 Orc_Warrior 阅读(179) 评论(0) 推荐(0)
摘要:1、根据map的值,升序排序 1 Map<String, Integer> map = new TreeMap<String, Integer>(); 2 map.put("d", 1); 3 map.put("b", 2); 4 map.put("a", 3); 5 map.put("c", 4) 阅读全文
posted @ 2016-12-29 16:33 Orc_Warrior 阅读(258) 评论(0) 推荐(0)
摘要:/**************Windows与Linux编码、乱码************* Windows的记事本编码用的是系统内码。 简体Windows默认编码是GBK,此时,用UTF-8解码,就会出现乱码,用GBK来解码正常。 Linux默认编码是UTF-8,修改linux编码方法: vi / 阅读全文
posted @ 2016-12-26 16:14 Orc_Warrior 阅读(100) 评论(0) 推荐(0)
摘要:-task task_stat1001to1010.yaml -log log4j_stat1001to1010.xml 用绝对路径 阅读全文
posted @ 2016-12-26 11:19 Orc_Warrior 阅读(600) 评论(0) 推荐(0)