4月24日,Statistics,每日20行。
来源:互联网 发布:巨人网络街篮手游下载 编辑:程序博客网 时间:2024/05/21 17:00
import java.util.*;class Counter { int i = 1; public String toString(){ return Integer.toString(i); }}public class Statistics { public static void main(String[] args) { Hashtable ht = new Hashtable(); for(int i = 0; i < 10000; i++){ Integer r = new Integer((int)(Math.random() * 20)); if(ht.containsKey(r)){ ((Counter)ht.get(r)).i++; } else{ ht.put(r, new Counter()); } } System.out.println(ht); }}
0 0
- 4月24日,Statistics,每日20行。
- 6月4日,每日20行。
- 4月20日,TestVector,每日20行。
- 4月4日,Decode,每日20行。
- 3月4日,simple_window,每日20行。
- 4月1日,StringEqualTest,每日20行。
- 4月2日,StringEqualTest1,每日20行。
- 4月3日,CharCode,每日20行。
- 4月5日,StringBufferPass,每日20行。
- 4月6日,StringBufferModify,每日20行。
- 4月7日,RemoveHZ,每日20行。
- 4月8日,DemogetProperties,每日20行。
- 4月9日,GetCurrentTime,每日20行。
- 4月10日,MyThread,每日20行。
- 4月11日,MyThread,每日20行。
- 4月12日,TestMyThread,每日20行。
- 4月13日,TestThread,每日20行。
- 4月14日,TestJoin,每日20行。
- Java API中的常用类
- 使用Nexus搭建Maven私服
- 挑战 P243 poj3686 (WA) 最小费用流,不知道为什么。
- JSP request对象、response对象、contentType属性,HTTP状态码
- 微型秒杀模型的几点思考
- 4月24日,Statistics,每日20行。
- Leetcode 61. Rotate List
- 动态规划
- TCP客户端接收到的数据包的拆包和并包
- alignToScreen
- 基于MVC图片水印的源码分析
- 【Docker系列】——Docker简介
- 定制你自己的CRF模型
- 反射加载资源的3中方式