随笔分类 - 一些技术小技巧
实际工作中常用到的一些小技巧
摘要:``` ExecutorService service = Executors.newSingleThreadExecutor(); Runnable task = () -> { System.out.println("start"); try { TimeUnit.SECONDS.sleep(5); } catch (InterruptedException e) { e.printStack
阅读全文
摘要:java8 lambda表达式 一些注意 首先需要将list或是数组Stream一下 stream of elements filter sorted map collect( Collectors.toList ) 例子: [4,3,2,1,6,7,8] map 输出: fliter 输出: re
阅读全文
摘要:取出字符串最后一位 js代码 java代码 小结:用字符串的charAt(),传入字符串长度减一。
阅读全文

浙公网安备 33010602011771号