Generic Interface 1
public class GenericClass2 implements GenericInterface<Integer>{
public void add(Integer x) {
System.out.println("Integer Value :"+x);
}
public static void main(String[] args) {
GenericClass2 g2=new GenericClass2();
g2.add(100);
}
}
Output:
Integer Value :100