摘要: interface Vehicle { default void print(){ System.out.println("我是一辆车!"); } static void blowHorn(){ System.out.println("按喇叭!!!"); } } 必须是default (默认)或者s 阅读全文
posted @ 2018-05-15 20:29 下一站_jn 阅读(350) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class Test{ public static void main(String[] args) { Map<String, String> map = new HashMap<String, String>(); map.put("1", 阅读全文
posted @ 2018-05-15 16:22 下一站_jn 阅读(129) 评论(0) 推荐(0) 编辑