下面是我写的一段代码:编译时出错,无法解析Enumeration,请教各位这是怎么回事?谢谢
import java.util.*;
import java.io.*;
class PropTest
{
public static void main(String[] args)
{
/*Properties pro=System.getProperties();
pro.list(System.out);*/
Properties pro=new Properties();
try{
pro.load(new FileInputStream("winsun.ini"));
Enumeration enum=pro.propertyNames();
while(enum.hasMoreElements())
{
String strKey=(String)enum.nextElement();
String strValue=pro.getProperty(strKey);


System.out.println(strKey+strValue);


}
           
           }
         
        catch(Exception e)
        {
         e.printStackTrace();
        
        }

}
}