Dear all ,
I have got a Generics Puzzle which i am pasting, please help me out. Kind attention required. It's not homework.
public class _____ {
private ______ object;
public ______ (______ object) {
this.object = object;
}
public ____ getObject() {
return object;
}
public static void main(String[] args) {
Gen str = new Gen("answer");
Gen intg = new Gen(42);
System.out.println(str.getObject() + "=" + intg.getObject());
}
}
Code Hints :
Gen
Gen>
Gen
?
T
Best Regards
Kaushik Banerjee
2006-08-22
23:28:17
·
1 answers
·
asked by
K Ban
2
in
Computers & Internet
➔ Programming & Design