摘要: 参考网站 https://www.redblobgames.com/grids/hexagons/ 阅读全文
posted @ 2022-12-06 19:41 carry1899 阅读(31) 评论(0) 推荐(0) 编辑
摘要: java创建线程的方式 创建线程的唯一方法是创建Thread类 创建线程的唯一方法是创建Thread类 创建线程的唯一方法是创建Thread类 网上一搜都是三种五种甚至七种九种都有,反正我是各种看不懂 1.硬要说实现Runnable是创建了线程我也无话可说 2.硬要说间接创建Thread也算的话我还 阅读全文
posted @ 2022-12-06 16:55 carry1899 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Queue<E> 阅读全文
posted @ 2022-12-05 20:43 carry1899 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Set<E> 类结构 继承接口 Collection 实现 AbstractSet<E> SortedSet<E> HashSet<E> LinkedHashSet<E> TreeSet<E> 接口概述 不包含重复元素 部分实现类可能对包含元素有限制 该接口是Java Collections Fra 阅读全文
posted @ 2022-12-05 20:40 carry1899 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 网络编程基础(1) 以下内容来自百度百科 OSI(Open System Interconnection)七层模型 意为开放式系统互联。国际标准组织(国际标准化组织)制定了OSI(Open System Interconnection)模型。 这个模型把网络通信的工作分为7层,分别是物理层,数据链路 阅读全文
posted @ 2022-12-05 20:20 carry1899 阅读(230) 评论(0) 推荐(0) 编辑
摘要: List<E> 类结构 继承接口 Collection<E> 实现 AbstractList<E> AbstractSequentialList<E> ArrayList<E> LinkedList<E> Vector<E> LinkedList<E> CopyOnWriteArrayList<E> 阅读全文
posted @ 2022-12-03 17:27 carry1899 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 接口说明 jdk标识接口,实现此接口的类意味着支持随机访问 对于一个实现了随机访问的类 for (int i=0, n=list.size(); i < n; i++) list.get(i); 比以下方式快 for (Iterator i=list.iterator(); i.hasNext(); 阅读全文
posted @ 2022-12-03 15:09 carry1899 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Collection<E> 类结构 继承接口 Iterable<E> 实现 AbstractCollection<E> List<E> Set<E> Queue<E> 接口概述 集合框架的根接口 部分集合允许重复元素,部分集合有序 JDK不提供此接口直接实现,实现类通过实现Collection的子接 阅读全文
posted @ 2022-12-02 17:19 carry1899 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Java Collections Framework - Map public interface Map<K,V> 1 接口概括 key-value映射;不能包含重复key;一个key映射一个值 取代 Dictionary 类 提供三种访问map的方法: keySet()(),values(),e 阅读全文
posted @ 2022-12-01 18:06 carry1899 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 创建型 1 单例模式(Singleton Pattern) 2 工厂模式(Factory Pattern) 3 抽象工厂模式(Abstract Factory Pattern) 4 建造者模式(Builder Pattern) 5 原型模式(Prototype Pattern) 2 结构型 1 阅读全文
posted @ 2022-12-01 10:49 carry1899 阅读(22) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示