jdk1.3.0_02的问题! 新学java,请大家多多指教! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 no body can help me ??? 呵呵,是我的问题太简单了,请大家帮帮忙,我刚接触java!! 1.3.0_02不应该有问题的1.3.1用的比较多现在有1.4.0beta版 谁说jdk1.3不支持图形,当然支持 import java.io.*;public class MyApplict{ public static void main(String[] args) { char a; System.out.println("please enter a char:"); try{ a=(char)System.in.read(); } catch(IOException e){ }; System.out.println(a); }}上面程序在编译是提示 c未被初始化,请问是怎么回事?? import java.io.*;public class MyApplict{ public static void main(String[] args) { char a=0; System.out.println("please enter a char:"); try{ a=(char)System.in.read(); } catch(IOException e){ }; System.out.println(a); }}方法中的变量必须显式初始化 MYsql Communications link failure 两个jScrollPane怎么关联上下同步滚动 接口MouseMotionListener的mouseDragged……鼠标拖动 老手过来看看呗 十万个为什莫之“关于Serializable接口” java 的帮助文件哪儿可以找到? 关于java虚拟机 rmi问题,急需解决,一定给分 初学java有什么好书! 以下这段程序的内部类应该如何修改? socket编译问题,新手求教~谢谢~ 使用java和 vc哪一个更有前途?...
1.3.1用的比较多
现在有1.4.0beta版
public class MyApplict
{
public static void main(String[] args)
{
char a;
System.out.println("please enter a char:");
try{
a=(char)System.in.read();
}
catch(IOException e){
};
System.out.println(a);
}
}上面程序在编译是提示 c未被初始化,请问是怎么回事??
public class MyApplict
{
public static void main(String[] args)
{
char a=0;
System.out.println("please enter a char:");
try{
a=(char)System.in.read();
}
catch(IOException e){
};
System.out.println(a);
}
}
方法中的变量必须显式初始化