自学
青_31221
这个作者很懒,什么都没留下…
展开
-
完成一个线程计算1-100之间所有数的和,另外一个线程取1-100之间所有数的和的过程
代码 public static void main(String[] args) throws Exception { ExecutorService nFixed = Executors.newFixedThreadPool(2); PipedInputStream pi = new PipedInputStream(); PipedOutputStream po = new PipedOutputStream(); pi.connect(po); nFixed.exec原创 2020-09-03 09:03:14 · 641 阅读 · 0 评论 -
无重复字符的最长子串(题目出自力扣)
无重复字符的最长子串 源代码 public static void main(String[] args) { String s = "yrwetiuwehddfgdsjkfsfhkg"; Set<Character> list=new HashSet(); int n = s.length(); int rk= 0,sum=0; for (int i = 0; i原创 2020-08-31 18:29:25 · 73 阅读 · 0 评论