摘要: //HashMap三种遍历方法 public class MapDemo { public static void main(String[] args) { HashMap<Integer, String> map = new HashMap<>(); map.put(1, "大哥"); map. 阅读全文
posted @ 2020-09-08 17:27 卢肥 阅读(112) 评论(0) 推荐(0)
摘要: //ArrayList三种遍历方法 public class ListDemo { public static void main(String[] args) { ArrayList<Integer> list = new ArrayList<>(); list.add(3); list.add( 阅读全文
posted @ 2020-09-08 17:26 卢肥 阅读(396) 评论(0) 推荐(0)
摘要: //计算两个日期之间的天数 public class CalendarTest { public static void main(String[] args) { Calendar instance = Calendar.getInstance(); instance.set(2010, 9, 7 阅读全文
posted @ 2020-09-07 19:29 卢肥 阅读(156) 评论(0) 推荐(0)
摘要: 平时在使用IDEA开发工具的时候, 方法提示(ctrl+Q)都是英文,难免有些不方便。 ##下面是我保存的两份中文API(Java 8),仅供参考。 ##链接:https://pan.baidu.com/s/1NbjazZqL3rblHvKJVUZYFQ ##提取码:c5da ##下载完毕之后也可以 阅读全文
posted @ 2020-09-07 16:38 卢肥 阅读(1971) 评论(0) 推荐(2)
摘要: public class TestSearchIndex { public static void main(String[] args) { String one = "小笼包子"; String two = "包"; System.out.println("方法1:" + searchIndex 阅读全文
posted @ 2020-09-03 16:20 卢肥 阅读(244) 评论(0) 推荐(0)
摘要: 简记。 阅读全文
posted @ 2020-08-10 15:26 卢肥 阅读(48) 评论(0) 推荐(0)