摘要:
1.Random:产生一个伪随机数(通过相同的种子,产生的随机数是相同的); 2.ThreadLocalRandom:是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。ThreadLocalRandom不是直接用new实例化,而是第一次使用其静态方法current()。从Math. 阅读全文
posted @ 2017-04-02 19:57
*小嘻嘻*
阅读(4760)
评论(0)
推荐(0)
摘要:
public class StringBuilder_and_StringBuffer { private static long SystemTime(){ return System.currentTimeMillis(); } private static void TString(){ long begin=SystemTime(); Str... 阅读全文
posted @ 2017-04-02 19:00
*小嘻嘻*
阅读(1362)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { // TODO Auto-generated method stub /* * 使用for循环遍历数组 * int arr[]=new int[]{}; int arr1[][]={{1,2,3,4,5,6,7,8,9},{2,3,6,8,7},{8,5,9,6,7}}; for (int i... 阅读全文
posted @ 2017-04-02 10:14
*小嘻嘻*
阅读(314)
评论(0)
推荐(0)

浙公网安备 33010602011771号