摘要: find index without indexOf() //foor loop in the collection for (int i = 0; i < s.length(); i++) { for (int j = i + 1; j < s.length() - i; j++) { //get 阅读全文
posted @ 2021-08-18 07:58 苗妙苗 阅读(43) 评论(0) 推荐(0) 编辑
摘要: public static int sum(final List<String> l) { return int sum = Stream().map(n -> Integer.valueOf(n)).sum(); } {"2","3","5"} => 10 private static final 阅读全文
posted @ 2021-08-18 01:39 苗妙苗 阅读(169) 评论(0) 推荐(0) 编辑