摘要: 一、集合 集合类的分类 * (一)List 结构集合类 * ArrayList LinkedList Vector Stack * (二)Map 结构集合类 * HashMap HashTable * (三)Set 结构集合类 * HashSet TreeSet * (四)Queue 结构集合类和 阅读全文
posted @ 2019-04-15 17:09 Hunter·Zhang 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 2019.04.15 第1000题:A+B Problem Problem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file.OutputFor e 阅读全文
posted @ 2019-04-15 09:47 Hunter·Zhang 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 线程 2019-11-1414:44:18 /** * 程序 : 保存在硬盘上的一段可执行的静态代码的集合(是可执行文件) * 进程 : 一段正在内存中运行中的程序(有生命周期), 进程之间不可以直接互访. * 线程 : 一个进程中的多个子任务, 直接由CPU负责处理执行. 多线程之间可以方便的共享 阅读全文
posted @ 2019-11-14 14:51 Hunter·Zhang 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Problem Description 根据输入的半径值,计算球的体积。 Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。 Sample Input 1 1.5 1 1.5 Sample O 阅读全文
posted @ 2019-04-22 16:25 Hunter·Zhang 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Problem Description 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。 Output 对于每组输入数据,输出一行,结果保留两位小数。 Sample In 阅读全文
posted @ 2019-04-18 16:05 Hunter·Zhang 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Problem Description 给定两个正整数,计算这两个数的最小公倍数。 Input 输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数. Output 对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。 Sample Input 10 14 10 14 Sam 阅读全文
posted @ 2019-04-17 17:19 Hunter·Zhang 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 2019.04.16 Problem Description Your task is to Calculate the sum of some integers. Input Input contains multiple test cases. Each test case contains a 阅读全文
posted @ 2019-04-16 22:16 Hunter·Zhang 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 2019.04.13 第1002题:A+B Proble Ⅱ Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum o 阅读全文
posted @ 2019-04-15 09:53 Hunter·Zhang 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 2019.4.14 第1001题:Sum Problem Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calcul 阅读全文
posted @ 2019-04-15 09:51 Hunter·Zhang 阅读(92) 评论(0) 推荐(0) 编辑
摘要: package Thread_Example; class Xc extends Thread //创建线程 所需要的类 { public void run() { for(int i=0;i<25;i++) { System.out.println("子函数"); } } } publi... 阅读全文
posted @ 2019-04-10 17:40 Hunter·Zhang 阅读(78) 评论(0) 推荐(0) 编辑