第2章练习题1
来源:互联网 发布:python 短文本相似度 编辑:程序博客网 时间:2024/04/28 22:14
/**Exercise.java
* 验证java类成员的默认初始化功能
* @author Camille-He
*
*/
class Hell {
int a;
char ch;
}
public class Exercise {
public static void main(String ar[]) {
Hell he = new Hell();
System.out.println("a:"+he.a);
System.out.println("ch:"+he.ch);
}
}
/*Output:
name:spot
says:Ruff!
true
true
*///~
* 验证java类成员的默认初始化功能
* @author Camille-He
*
*/
class Hell {
int a;
char ch;
}
public class Exercise {
public static void main(String ar[]) {
Hell he = new Hell();
System.out.println("a:"+he.a);
System.out.println("ch:"+he.ch);
}
}
/*Output:
name:spot
says:Ruff!
true
true
*///~
0 0
- 第2章练习题1
- 第2章练习题
- 第1章练习题
- JSP 第1、2章 练习题
- 第1章第2节练习题6 反向输出
- 第1章第2节练习题7 递减输出
- 第1章第2节练习题11 就地逆置单链表
- 第2章练习题9
- 第2章练习题--1--平均年龄--2714
- 第2章练习题--3--两倍--2807
- 第2章练习题--10--密码--2818
- scala第2章练习题part1
- 第6章练习题--1--宇航员--1835
- 第3章练习题
- 第1章第2节练习题2 非递归删除指定结点
- 第2章第1节练习题2 判断是否中心对称
- 第2章第2节练习题1 逆置队列
- 第1章第1节练习题2 逆置顺序表
- 关于组态王的字符串写入问题:
- 基本算法——第三单元 枚举
- 016 记一次失败的Visual Stdio安装经历
- 装饰模式
- 渐近记号总结
- 第2章练习题1
- prim算法 优化前O(n²) 优化后O(n-k)
- Odd Even Linked List
- 责任链模式
- 基本算法——第四单元 贪心
- 第2章练习题9
- 学习JavaScript的最佳方法
- 模板方法模式
- SPFA算法——最短路径