S
Shawn
Hi,
I am reading some Java file, which I don't understand:
Class A<B> {
B b;
A(B b) {this.b = b;}
....
} //A
A<JComponent> = new A(JButton);
I have never seen <..> after a Class name, like Class A<B>. I guess this
is some template stuff, similar to C++. Is this something new for Java
1.5 or I just didn't know before?
Thank you.
I am reading some Java file, which I don't understand:
Class A<B> {
B b;
A(B b) {this.b = b;}
....
} //A
A<JComponent> = new A(JButton);
I have never seen <..> after a Class name, like Class A<B>. I guess this
is some template stuff, similar to C++. Is this something new for Java
1.5 or I just didn't know before?
Thank you.