public class Demo {
public static void main(String[] args){
class Addition<T>{
private T a;
private T b;
Addition(T a, T b){
this.a = a;
this.b = b;
}
public String add(){
return a.toString()+b.toString();
}
}
Addition<String> addition = new Addition<String>("1","2");
System.out.println(addition.add());
}
}