get call callable
来源:互联网 发布:背包推荐 知乎 编辑:程序博客网 时间:2024/06/07 05:41
import java.util.*;import java.util.concurrent.*;public class whoCallCall implements Callable{ public String call(){ System.out.println("耶律屠狗招您那!"); return "刘爷"; }}
import java.util.*;import java.util.concurrent.*;public class iCallCall{ public static void main(String args[]) throws Exception { ExecutorService pool = Executors.newFixedThreadPool(3); Callable<String> callable=new whoCallCall(); Future<String> weiLaiBuShiMeng=pool.submit(callable); String pi=weiLaiBuShiMeng.get(); System.exit(0); }}
调用get()就是调用call(),有诗为证。
- get call callable
- Get gdb call stack
- Get Call Stack
- Callable
- Callable
- Callable
- Get CLR call stack in dump analysis
- jdk 在什么地方处理Callable的call方法的Exception呢?
- get system call table in x86-64 Linux
- get system call table in x86-64 Linux
- Windbg调试--Get the Call Stack back when met UnhandledExceptionFilter
- get system call table in x86-64 Linux
- LUA中Attempt to call a non-callable object或attempt to call field 'new' (a nil value)问题的解决
- call
- call
- call
- call
- call
- 2013多校第10场第9题--HDU4704
- ffmpeg在windows下的编译
- WebService基于SoapHeader实现安全认证
- 我读Mongoose源码----程序框架
- Hanoi塔
- get call callable
- 原码、反码、补码及移码的作用与区别
- php Smarty 高级 模板继承
- 利用python对rrd进行resize
- 用myeclipse打war包
- 学习C++通过使用MinGW+Eclipse(windows下)
- 模板元编程
- ffmpeg数据结构解释
- Android_03