摘要:
最近一直没有什么成系统的学习东西,也就没写什么随笔。昨天晚上,一哥们儿说给弄个输入汉字直接转拼音的程序,问了他几点需求,说你想做个啥的,最后,他说想做个EXCEL的,现在发现EXCEL确实是个好东西啊^_^.好吧,一听,应该是没啥难度,主要是用VB就能解决,于是开始找资料,还真有不少,不过我看到的应该是都只能处理GB2312的。弄好,发过去,说这就行,最后还提了个需求说要大写的,一句你不早说,让后稍做改动,完事。上VB代码: 1 Function PinYin(Hz As String) 2 Dim PinMa As String 3 Dim MyPinMa As Variant 4 Di.. 阅读全文
摘要:
Concurrent Random NumbersIn JDK 7,java.util.concurrentincludes a convenience class,ThreadLocalRandom, for applications that expect to use random numbers from multiple threads orForkJoinTasks.For concurrent access, usingThreadLocalRandominstead ofMath.random()results in less contention and, ultimatel 阅读全文