提交 7319c03a 编写于 作者: 武汉红喜's avatar 武汉红喜

java

上级 a8c55463
......@@ -10,7 +10,7 @@ import java.util.concurrent.Executors;
public class ExchangerTest {
public static void main(String[] args) {
ExecutorService executorService = Executors.newCachedThreadPool();
final Exchanger<String> exchanger = new Exchanger<String>();
final Exchanger<String> exchanger = new Exchanger<>();
executorService.execute(() -> {
try {
String data1 = "zxx";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册