[Bluej-discuss] Excercise 1.17

Bryan J Higgs bhiggs at rivier.edu
Fri Sep 7 17:50:21 BST 2007


My guess is that you are using a Java Development Kit earlier than JDK 1.5

You really need to have BlueJ use either JDK 1.5 or 1.6 to use what are
called Generics (the <Student> construct).

Good luck!

*/Dr. Bryan J. Higgs
Associate Professor
Dept. of Mathematics & Computer Science
Rivier College
420 Main St.
Nashua, NH 03060/*



Daniel Farmer, Esq. wrote:
> Ok I load the lab-classes project ( I started excercise 1.17 ) and get 
> errors on compiling it.
>
> It gives me an error on the following line ( SEE BELOW ) in the LabClass 
> class...
>
> ANY IDEA HOW TO FIX? or is there an updated file?
>
>
> import java.util.*;
>
> /**
> * The LabClass class represents an enrolment list for one lab class. It 
> stores
> * the time, room and participants of the lab, as well as the instructor's 
> name.
> *
> * @author Michael Kolling and David Barnes
> * @version 2006.03.30
> */
> public class LabClass
> {
>     private String instructor;
>     private String room;
>     private String timeAndDay;
>     private List <Student> students;     // ERROR HIGHLIGHTED HERE 
> <IDENTIFIER> EXPECTED
>     private int capacity;
>
> _________________________________________________________________
> Enter to win a night a VIP night out at TIFF 
> http://redcarpet.sympatico.msn.ca/
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
>
>   


More information about the bluej-discuss mailing list