[Bluej-discuss] Excercise 1.17

Daniel Farmer, Esq. danfarmer at hotmail.com
Fri Sep 7 20:38:33 BST 2007


Hi Bryan thanks for the comments. Although I installed JDK 1.6 and its still 
showing up with that error upon attempted compilation.


----Original Message Follows----
From: Bryan J Higgs <bhiggs at rivier.edu>
Reply-To: General discussion for users of BlueJ <bluej-discuss at bluej.org>
To: General discussion for users of BlueJ <bluej-discuss at bluej.org>
Subject: Re: [Bluej-discuss] Excercise 1.17
Date: Fri, 07 Sep 2007 12:50:21 -0400

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
 >
 >
 >
_______________________________________________
mailing list bluej-discuss at bluej.org
To unsubscribe or change your preferences, go to
http://lists.bluej.org/mailman/listinfo/bluej-discuss

_________________________________________________________________
Former Police Officer Paul Gillespie’s TAKE BACK THE INTERNET tips and 
tricks, watch the video now  http://safety.sympatico.msn.ca/



More information about the bluej-discuss mailing list