package c08.cotroller;
import java.util.*;
public class Controller
{
private List eventList = new ArrayList();
public void addEvent(Event c)
{
eventList.add(c);
}
public void run()
{
while(eventList.size() > 0)
{
for(int i = 0; i < eventList.size(); i++)
{
Event e = (Event)eventList.get(i);
if(e.ready())
{
System.out.println(e);
e.action();
eventList.remove(i);
}
}
}
}
}
Note: E:\College\java\Projects\Controller.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
编译出现这个,然后在以后的import c08.controller.*; 的时候就显示cannot access Controller.
这是什么原因呢??求助。。。