JAVA编程思想第一题出现错误
2024-09-17 05:45:23
//: object/E01_DefaultInitialization.java public class E01_DefaultInitialization{
int i ;
char c ;
public E01_DefaultInitialization(){
System.out.println("i = " + i );
System.out.println("c = [" + c + "]");
}
public static void main (String[] args){
new E01_DefaultInitialization();
}
}
这段代码输出不正确,
正常的应当是
i = 0
c = [ ]
实际输出的是
i = 0
c = [a ]
无解啊!
编辑环境是 JDK1.6 Notepad++
难道是那个类库错误?
最新文章
- C#关于分页显示
- “老坛泡新菜”:SOD MVVM框架,让WinForms焕发新春
- Netty(二)入门
- C/C++实践笔记 006
- SQL2012连接字符串
- PHP 常用字符串函数整理
- 【MyEclipse 2015】 逆向破解实录系列【2】(纯研究)
- oracle的会话(session)
- class tuple
- 移动端翻页插件dropload.js(支持Zepto和jQuery)
- MySql安装时在Start Service处失败
- VB.NET版机房收费系统—DataGridView应用
- python- 如何return返回多个值
- python——登陆接口设计(循环方法)
- android最新的工具DateHelper
- MySQL定义和变量赋值
- 老李分享: Oracle Performance Tuning Overview 翻译
- 数据分析 大数据之路 五 pandas 报表
- Pycharm的激活码,亲测可用(20181223)
- mongodb及mongoclient在win7下的编译和使用
热门文章
- memcached客户端的使用
- Valid Number @python
- U盘安装Linux CentOS 6.5 64位操作系统(来自互联网)
- C++学习36 string类和字符串
- c++cin.ignore()
- ZOJ 3407 Doraemon's Cake Machine [数学]
- [HDU 4417] Super Mario (树状数组)
- BC-Clarke and five-pointed star(水)
- 黑马程序员_JAVA基础知识总结2
- (转)读取XML数据到treeView中