摘要: 1 package com.pang.demo1; 2 3 import java.util.ArrayList; 4 import java.util.Collections; 5 6 public class Demo01 { 7 public static void main(String[] args) { 8 ArrayList list =... 阅读全文
posted @ 2017-06-16 21:46 更好遇见你 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1 package com.pang.demo1; 2 3 public class Demo01 { 4 public static void main(String[] args) { 5 int i = 1; 6 //转为包装类,自动装箱 7 Integer a = i; 8 //转为基本类,自动拆箱... 阅读全文
posted @ 2017-06-16 21:32 更好遇见你 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 控制台打印 [12, 11, 9][12, 1, 23, 4, 55] 阅读全文
posted @ 2017-06-16 21:15 更好遇见你 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 控制台打印的结果是 falsetruetruetrue 阅读全文
posted @ 2017-06-16 20:32 更好遇见你 阅读(423) 评论(0) 推荐(0) 编辑
摘要: [Person [name=李四, age=4, sex=男], Person [name=张三, age=12, sex=男], Person [name=赵六, age=22, sex=男], Person [name=王五, age=34, sex=男]] 阅读全文
posted @ 2017-06-16 17:28 更好遇见你 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 1 package com.pang.array_demo; 2 3 import java.util.Arrays; 4 5 public class Array_Demo { 6 public static void main(String[] args) { 7 int[] arr = { 1, 5, 3, 23, 3, 45 }; 8 ... 阅读全文
posted @ 2017-06-16 17:09 更好遇见你 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 package com.pang.array_demo; 2 3 import java.util.Arrays; 4 5 public class Array_Demo { 6 public static void main(String[] args) { 7 int[] arr = { 1, 5, 3, 23, 3, 45 }; 8 ... 阅读全文
posted @ 2017-06-16 17:05 更好遇见你 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1 package com.pang.array_demo; 2 3 public class Array_Demo { 4 public static void main(String[] args) { 5 int[] arr = {1,2,3,4,3,45}; 6 arrayDemo(arr); 7 System.ou... 阅读全文
posted @ 2017-06-16 16:56 更好遇见你 阅读(1557) 评论(0) 推荐(1) 编辑
摘要: 1 package com.pang.array_demo; 2 3 import java.util.Arrays; 4 5 //创建数组的两种形式 6 public class New_Array { 7 public static void main(String[] args) { 8 // 动态初始化 9 int[] arr... 阅读全文
posted @ 2017-06-16 16:47 更好遇见你 阅读(4860) 评论(0) 推荐(0) 编辑