2016年7月8日
摘要:
Hello World 交互式编程 Lua 交互式编程模式可以通过命令 lua -i 或 lua 来启用: 脚本式编程 我们可以将 Lua 程序代码保持到一个以 lua 结尾的文件,并执行,该模式称为脚本式编程,如我们将如下代码存储在名为 hello.lua 的脚本文件中: 使用 lua 命令执行以
阅读全文
posted @ 2016-07-08 17:55
huey2672
阅读(407)
推荐(0)
2016年7月7日
摘要:
A HyperLogLog is a probabilistic data structure used in order to count unique things (technically this is referred to estimating the cardinality of a
阅读全文
posted @ 2016-07-07 11:09
huey2672
阅读(633)
推荐(0)
2016年7月1日
摘要:
原文:http://commons.apache.org/proper/commons-configuration/userguide/quick_start.html Reading a properties file Configuration information is frequently
阅读全文
posted @ 2016-07-01 17:40
huey2672
阅读(1647)
推荐(0)
2016年6月30日
摘要:
Operations on String that are null safe. IsEmpty/IsBlank - checks if a String is empty (判断字符串是否为空) Trim/Strip - removes leading and trailing whitespac
阅读全文
posted @ 2016-06-30 15:48
huey2672
阅读(272)
推荐(0)
2016年6月29日
摘要:
Following on/off features are defined in DeserializationConfig.Feature (Jackson 1.x) or DeserializationFeature (Jackson 2.x): ACCEPT_EMPTY_STRING_AS_N
阅读全文
posted @ 2016-06-29 15:18
huey2672
阅读(362)
推荐(0)
摘要:
Following on/off features are defined in SerializationConfig.Feature (for Jackson 1.x), or SerializationFeature (Jackson 2.x): AUTO_DETECT_FIELDS (def
阅读全文
posted @ 2016-06-29 14:49
huey2672
阅读(740)
推荐(0)
2016年6月22日
摘要:
org.apache.commons.math3.primes.Primes 是关于质数操作的工具类。 1. public static boolean isPrime(int n) 判断 n 是否为质数。 2. public static int nextPrime(int n) 返回大于 n 的
阅读全文
posted @ 2016-06-22 10:38
huey2672
阅读(289)
推荐(0)
2016年6月2日
摘要:
The Java concurrency API provides a synchronization utility that allows the interchange of data between two concurrent tasks. In more detail, the Exch
阅读全文
posted @ 2016-06-02 18:42
huey2672
阅读(190)
推荐(0)
摘要:
The Phaser class provides a method that is executed each time the phaser changes the phase. It's the onAdvance() method. It receives two parameters: t
阅读全文
posted @ 2016-06-02 17:12
huey2672
阅读(288)
推荐(0)
摘要:
One of the most complex and powerful functionalities offered by the Java concurrency API is the ability to execute concurrent-phased tasks using the P
阅读全文
posted @ 2016-06-02 15:55
huey2672
阅读(460)
推荐(0)