码迷,mamicode.com
首页 >  
搜索关键字:thinking in c++    ( 826个结果
[20-05-20][Thinking in Java 30]Java Container 2 - Print of Container
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
Java 中 String 对 null 对象的容错处理!
作者:肖汉松 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
[20-05-18][Thinking in Java 25]Java Inner Class 9 - Anonymous Inner Class 4
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
[20-05-18][Thinking in Java 26]Java Inner Class 10 - Anonymous Inner Class 5
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
[20-05-15][Thinking in Java 18]Java Inner Class 2 - .this & .new
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
[20-05-15][Thinking in Java 17]Java Inner Class 1 - Inner Class 2
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
[20-05-14][Thinking in Java 15]Java Interfaces 4 - Factories 2
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
[20-05-06][Thinking in Java 12]Java Interfaces 2 - Interface
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
[20-05-05][Thinking in Java 10]Java Polymorphism 4 - Downcasting
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
[20-05-05][Thinking in Java 9]Java Polymorphism 3 - Extensibility
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
826条   上一页 1 2 3 4 5 ... 83 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!