Java
mitkook
Being an usual man, making something unusual!
展开
-
JAVA获取随机数
在Java中我们可以使用java.util.Random类来产生一个随机数发生器。它有两种形式的构造函数,分别是Random()和Random(long seed)。Random()使用当前时间即System.currentTimeMillis()作为发生器的种子,Random(long seed)使用指定的seed作为发生器的种子。 随机数发生器(Random)对象产生以后,转载 2007-04-12 14:21:00 · 920 阅读 · 0 评论 -
Add mappings to an Elasticsearch index in realtime
Changing mapping on existing index is not an easy task. You may find the reason and possible solutions in here:http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime/to get原创 2013-10-15 05:05:13 · 2019 阅读 · 1 评论 -
Java is Pass-by-Value, Dammit!
THIS ARTICLE CONFIRMS MY UNDERSTANDING ON JAVA. ENJOY IT.original post: http://javadude.com/articles/passbyvalue.htm----------------------------------------------------------------------------转载 2013-10-17 02:55:09 · 823 阅读 · 0 评论