摘要:
public class App { public static void main(String[] args) { //1.添加测试数据 List<String> accounts = new ArrayList<>(); accounts.add("tom"); accounts.add("j 阅读全文
摘要:
1.建议为线程取一个名字,这样便于区分 线程默认的名称为Thread-jvm进程中自增的数字 2.自定义线程名称 public class CustomThreadName { private final static String PREFIX = "ALEX-"; public static v 阅读全文
摘要:
1.表达式类型检查 public class App { public static void test(MyInterface<String, List> inter) { List<String> list = inter.stratey("hello", new ArrayList()); S 阅读全文