Ребята! Почему это в жабе не является корректным?
interface IMethod
{
	public void method();
}
class SomeClass implements IMethod
{
	public void method()
	{
		System.out.println(«hi»);
	}
}
class Application
{
	static private void execMethod(List<IMethod> list)
	{
		for(IMethod e: list)
		{
			e.method();
		}
	}
	static public void main(String[] args)
	{
		List<SomeClass> list = new ArrayList<SomeClass>();
  		execMethod(list); //вот тут говорит, что типы не подходят.
	}
}





