English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

1 answers

k_banerjee2002 sorry I dont have time but to learn it yourself here is your link

http://www.google.co.uk/search?hl=en&q=Generics+Puzzle&btnG=Search&meta=

2006-08-22 23:32:22 · answer #1 · answered by Joe_Young 6 · 0 0

fedest.com, questions and answers