[求助]java的一个小问题
											
我是初学者、请问下面这个问题...
下面这个程序编译都不能通过。
import java.io.*;
public class test1 
 {
    public static void main(String args[])
      {
         char c;
         System.out.print("Enter a character please:");
         try{
               c=(char)System.in.read();
                 }catch(IOException e){};
         System.out.println(" you've entered character:"+c); 
           }
    }
错误提示:test1.java:11: variable c might not have been initialized
      System.out.println(" you've entered character:"+c);
                                                      ^
1 error
c没有被初始化、如果把初始化了是能够通过的、、
我的问题是:"为什么要给c初始化了才能通过编译?"



 
											





 
	    

 
	





