请选择 进入手机版 | 继续访问电脑版
楼主: ReneeBK
1570 12

Pro Java 8 Programming, 3rd Edition [推广有奖]

  • 1关注
  • 62粉丝

VIP

学术权威

14%

还不是VIP/贵宾

-

TA的文库  其他...

R资源总汇

Panel Data Analysis

Experimental Design

威望
1
论坛币
49402 个
通用积分
51.7504
学术水平
370 点
热心指数
273 点
信用等级
335 点
经验
57815 点
帖子
4006
精华
21
在线时间
582 小时
注册时间
2005-5-8
最后登录
2023-11-26

ReneeBK 发表于 2016-10-9 09:47:38 |显示全部楼层 |坛友微信交流群
相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币


本帖隐藏的内容

Pro Java 8 Programming, 3rd Edition.pdf (8.86 MB, 需要: 5 个论坛币)



二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Programming Edition Program editio dition Java

本帖被以下文库推荐

maxine2001 发表于 2016-10-9 09:58:08 |显示全部楼层 |坛友微信交流群
  1. Listing 3-1. A Skeleton Runnable Implementation
  2. class MyRunnable implements Runnable {
  3. public void run() {
  4. performLongRunningTask();
  5. }
  6. private void performLongRunningTask() {
  7. // Do some work here
  8. }
  9. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

bbslover 发表于 2016-10-9 20:25:47 |显示全部楼层 |坛友微信交流群
  1. Listing 3-2. Supplying a Runnable Reference to ThreadPoolExecutor
  2. public void startExecution()
  3. {
  4. ThreadPoolExecutor executor = getExecutor();
  5. Runnable newInstance = new MyRunnable();
  6. executor.execute(newInstance);
  7. }
复制代码

已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

pensifia 发表于 2016-10-10 19:29:39 |显示全部楼层 |坛友微信交流群
  1. Listing 3-3. It’s Common for a run() Method to Delegate Processing to Some Other Method
  2. public void startExecution() {
  3. ThreadPoolExecutor executor = getExecutor();
  4. Runnable newInstance = new Runnable() {
  5. public void run() {
  6. performLongRunningTask();
  7. }
  8. };
  9. executor.execute(newInstance);
  10. }
  11. void performLongRunningTask() {
  12. // Do some work here
  13. }
复制代码

使用道具

jgchen1966 发表于 2016-10-18 20:53:18 |显示全部楼层 |坛友微信交流群

3.4

  1. Listing 3-4. Using the execute() Method in ThreadPoolExecutor with a Lambda Expression
  2. ThreadPoolExecutor executor = getExecutor();
  3. executor.execute(() -> performLongRunningTask());
复制代码

使用道具

leon_9930754 发表于 2016-10-26 15:51:16 |显示全部楼层 |坛友微信交流群
  1. Listing 3-5. Sorting Strings Using Arrays.sort()
  2. String[] stringsToSort;
  3. .
  4. .
  5. .
  6. Arrays.sort(stringsToSort);
复制代码

使用道具

jianboxue 发表于 2016-11-4 16:29:26 |显示全部楼层 |坛友微信交流群

3.6

  1. Listing 3-6. A Comparator Implementation for Sorting Strings Containing Numeric Values
  2. Comparator<String> numericStringSorter = new Comparator<String>() {
  3. public int compare(String s1, String s2) {
  4. int i1 = Integer.valueOf(s1);
  5. int i2 = Integer.valueOf(s2);
  6. int relativeValue = Integer.compare(i1, i2);
  7. return relativeValue;
  8. }
  9. };
  10. Arrays.sort(stringsToSort, numericStringSorter);
复制代码

使用道具

Nicolle 学生认证  发表于 2016-11-27 07:16:41 |显示全部楼层 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Nicolle 学生认证  发表于 2016-11-27 07:17:30 |显示全部楼层 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Nicolle 学生认证  发表于 2016-11-27 07:18:35 |显示全部楼层 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-16 22:38