随笔分类 -  Java 提高(cs108)

stanford
摘要:oop design 分为以下几个方面:- encapsulation and modularity(封装和模块化)- API/Client interface design(API 接口给调用类者)- Inheritance hierarchy and interfaces(继承和继承的层次关系)... 阅读全文
posted @ 2014-06-30 10:07 神之一招 阅读(419) 评论(0) 推荐(0) 编辑
摘要:DebugerGreat questionsThese questions will solve most bugs:what method shows the symptom ? what lines of code produces that symptom ?what is the state... 阅读全文
posted @ 2014-06-27 10:39 神之一招 阅读(514) 评论(0) 推荐(0) 编辑
摘要:本文是转载的, 主要介绍 Junit 4 ( 搭建在 eclipse 中 )JUnit4 初体验Eclipse: 下载Ant, 基于java的开源构建工具, 你可以在 http://ant.apache.org/ 上得到最新的版本和丰富的文档, eclipse 中已经集成了Ant, (要确认集成An... 阅读全文
posted @ 2013-11-25 10:58 神之一招 阅读(624) 评论(0) 推荐(0) 编辑
摘要:Eclipise1. import, 所有的homework 是以 eclipse project directories 的形式. 所以要选择 “File –> Import “, Existing project “, 选择 “copy to workspace” option will cop... 阅读全文
posted @ 2013-11-22 16:34 神之一招 阅读(912) 评论(2) 推荐(0) 编辑
摘要:1. 有关copy Foo x = new Foo(1); Foo y = new Foo(2); x = y; // 只是指针copy Foo copy = new Foo(x); // 对象copy, 堆内存, 不建议使2. Array 相关 int[] a = new int[100]; a[... 阅读全文
posted @ 2013-04-05 09:41 神之一招 阅读(593) 评论(0) 推荐(0) 编辑