新学java,请大家多多指教!
 

解决方案 »

  1.   

    no body can help me ???
      

  2.   

    呵呵,是我的问题太简单了,请大家帮帮忙,我刚接触java!!
      

  3.   

    1.3.0_02不应该有问题的
    1.3.1用的比较多
    现在有1.4.0beta版
      

  4.   

    谁说jdk1.3不支持图形,当然支持
      

  5.   

    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未被初始化,请问是怎么回事??
      

  6.   

    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);
      }
    }
    方法中的变量必须显式初始化