10 2019 档案

摘要:List 接口的链接列表实现。实现所有可选的列表操作,并且允许所有元素(包括 null)。除了实现 List 接口外,LinkedList 类还为在列表的开头及结尾 get、remove 和 insert 元素提供了统一的命名方法。这些操作允许将链接列表用作堆栈、队列或双端队列。 此类实现 Dequ 阅读全文
posted @ 2019-10-09 20:18 I_PENCIL 编辑
摘要:什么是数组 阅读全文
posted @ 2019-10-09 19:17 I_PENCIL 编辑
摘要:1 package jh_08_数组; 2 3 import java.util.Scanner; 4 5 public class jh_02_数组简单练习 { 6 /* 7 * 计算5位学生的平均分 8 * 1:先把5位学生的成绩存到容器中。 9 * 2:累加容器中的元素。 10 */ 11 public static void main(String[] args) { 12 // 1:先把 阅读全文
posted @ 2019-10-09 19:17 I_PENCIL 编辑
摘要:ArrayList去除集合中自定义对象元素的重复值_对象的成员变量值相同 阅读全文
posted @ 2019-10-09 19:16 I_PENCIL 编辑
摘要:import java.util.ArrayList; import java.util.Iterator; public class jh_01_去除ArrayList集合中重复字符串元素方式 { /* * /** * * A:案例演示 * 需求:ArrayList去除集合中字符串的重复值(字符串的内容相同) * 思路:创建新集合方式 */ public static... 阅读全文
posted @ 2019-10-09 18:51 I_PENCIL 编辑

点击右上角即可分享
微信分享提示