Generic Interface 2
public interface GenericInterface<E> { /*Defines a generic interface which can accept
any type of argument*/
void add(E x);
}
Output:
public interface GenericInterface<E> { /*Defines a generic interface which can accept
any type of argument*/
void add(E x);
}