摘要:
1---java foreach public static void main(String[] args) { List list = new ArrayList(); list.add("1"); list.add("2"); list.add("3"); for(String str :... 阅读全文
posted @ 2015-12-31 15:13
黑鸟卫
阅读(385)
评论(0)
推荐(0)
摘要:
public class returnThread { public static void main(String[] args) throws InterruptedException, ExecutionException { ExecutorService service = Exec... 阅读全文
posted @ 2015-12-31 14:58
黑鸟卫
阅读(162)
评论(0)
推荐(0)
摘要:
方法1 (数据类型)(最小值+Math.random()*(最大值-最小值+1)) 例: (int)(1+Math.random()*(10-1+1)) 从1到10的int型随数 方法2 Random ra =new Random(); for (int i=0;i<30;i++) {Syste... 阅读全文
posted @ 2015-12-31 14:52
黑鸟卫
阅读(115)
评论(0)
推荐(0)
浙公网安备 33010602011771号