1 package test_17_4; 2 3 import java.util.ArrayList; 4 import java.util.Arrays; 5 import java.util.Collection; 6 import java.util.HashSet; 7 import ja ...
分类:
编程语言 时间:
2020-05-20 17:13:02
阅读次数:
52
作者:肖汉松 blog.xiaohansong.com/2016/03/13/null in java string/ 最近在读《Thinking in Java》,看到这样一段话: _Primitives that are fields in a class are automatically i ...
分类:
编程语言 时间:
2020-05-20 12:26:52
阅读次数:
57
1 package test_16_2; 2 3 public class Outter { 4 5 public Outter() { 6 7 } 8 9 public Outter(int i) { 10 11 this.i = i; 12 } 13 14 private int i = 1; ...
分类:
编程语言 时间:
2020-05-19 01:04:41
阅读次数:
56
1 package test_16_3; 2 3 public interface Inter { 4 5 String show(); 6 } 1 package test_16_3; 2 3 public class Outter { 4 5 public Inter inter() { 6 r ...
分类:
编程语言 时间:
2020-05-19 00:24:56
阅读次数:
61
1 package test_13_3; 2 3 public class Outer { 4 5 public Outer() { 6 7 System.out.println("this is Outer"); 8 } 9 10 class Inner { 11 12 public Inner( ...
分类:
编程语言 时间:
2020-05-16 00:12:01
阅读次数:
77
1 package test_13_2; 2 3 public class Outer { 4 5 private String str; 6 7 public Outer() { 8 9 } 10 11 public Outer(String str) { 12 13 this.str = str ...
分类:
编程语言 时间:
2020-05-15 22:56:38
阅读次数:
82
1 package test_12_2; 2 3 public interface Game { 4 5 boolean move(); 6 } 1 package test_12_2; 2 3 public interface GameFactory { 4 5 Game getGame(); 6 ...
分类:
编程语言 时间:
2020-05-15 00:34:12
阅读次数:
74
1 package test_3_1; 2 3 public enum Note { 4 5 MIDDLE_C, C_SHARP, B_FLAT; 6 } 1 package test_3_1; 2 3 interface Instrument { 4 5 // 自动static final 6 i ...
分类:
编程语言 时间:
2020-05-06 19:34:54
阅读次数:
71
1 package test_2_2; 2 3 public class Cycle { 4 5 public void balance() { 6 7 System.out.println("this is Cycle.balance()"); 8 } 9 } 1 package test_2_2 ...
分类:
编程语言 时间:
2020-05-05 12:35:03
阅读次数:
57
1 package test_2_1; 2 3 public class Rodent { 4 5 public void eat() { 6 7 System.out.println("Rodent.eat()"); 8 } 9 10 public void run() { 11 12 Syste ...
分类:
编程语言 时间:
2020-05-05 10:34:38
阅读次数:
58