- 博客(0)
- 资源 (14)
- 收藏
- 关注
Java Puzzlers完整中文版
谜题 40:不情愿的构造器
尽管在一个方法声明中看到一个 throws 子句是很常见的,但是在构造器的声明
中看到一个 throws 子句就很少见了。下面的程序就有这样的一个声明。那么,
它将打印出什么呢?
public class Reluctant {
private Reluctant internalInstance = new Reluctant();
public Reluctant() throws Exception {
throw new Exception("I'm not coming out");
}
public static void main(String[] args) {
try {Reluctant b = new Reluctant();
System.out.println("Surprise!");
} catch (Exception ex) {
System.out.println("I told you so");
}
}
}
2019-07-03
FastColoredTextBox 中文显示
修改了FastColoredTextBox的中文显示部分,解决显示中时字符过窄并且很卡的问题,但光标选择还有些问题,希望有高人能继续修改
2014-03-06
Beginning+3D+Game+Development+with+Unity
■About the Author
■About the Technical Reviewer
■Acknowledgmentsxvii
■Introduction
■Chapter 1: Exploring the
■Chapter 2: Unity UI Basics—Getting Started
■Chapter 3: Scripting: Getting Your Feet Wet
■Chapter 4: Terrain Generation: Creating a Test Environment
■Chapter 5: Navigation and Functionality
■Chapter 6: Cursor Control
■Chapter 7: Action Objects
■Chapter 8: Managing State
■Chapter 9: Object
■Chapter 10: Message Text
■Chapter 11: Inventory Logic
■Chapter 12: Managing the Inventory
■Chapter 13: Finishing the Basic Functionality
■Chapter 14: Getting Down to Game
■Chapter 15: A Maze and the Final Level
■Chapter 16: Menus and Levels
■Chapter 17: Beyond the
■Appendix A: SSE Shader Graphs
■Appendix B: Key Codes
■Appendix C: Final Sequence
■Index
2013-02-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人