I have an interface.
public interface Module { void init(); void actions(); }
What happens when i try to create an array li
You would need to fill the array with instances of a class(es) that implement that interface.
Module[] instances = new Module[20]; for (int i = 0; i < 20; i++) { instances[i] = new myClassThatImplementsModule(); }