tdelamater
Programmer
I just started this book: Core Java Volume II
I downloaded the sample code from the book from the vendors website. However, I cannot compile the examples that use APIs new to j2se 5.0.
How can I take advantage of the new features introduced in j2se 5.0? I went to suns website and it does not appear that they have a newer SDK.
Here is an example of my problem from the sample code downloadable from the above link.
Path: coreJava\v2\v2ch1\Bounce\Bounce.java Line#: 101
My compiler gives me the following error: java.util.ArrayList does not take parameters
Ball is a simple object
I currently have j2sdk1.4.2_04 installed, and use netbeans 4.1
Any help clearing up my confusion would be greatly appreciated. Thanks in advance
I downloaded the sample code from the book from the vendors website. However, I cannot compile the examples that use APIs new to j2se 5.0.
How can I take advantage of the new features introduced in j2se 5.0? I went to suns website and it does not appear that they have a newer SDK.
Here is an example of my problem from the sample code downloadable from the above link.
Path: coreJava\v2\v2ch1\Bounce\Bounce.java Line#: 101
Code:
private ArrayList<Ball> balls = new ArrayList<Ball>();
My compiler gives me the following error: java.util.ArrayList does not take parameters
Ball is a simple object
I currently have j2sdk1.4.2_04 installed, and use netbeans 4.1
Any help clearing up my confusion would be greatly appreciated. Thanks in advance