Hi Java Programmer,

You'll have to declare 

private Integer studentId;

as a field in your Student class. 

You'll also have to remove studentCount static
variable from the StudentRecord class and transfer it to your Student class.

Hope this helps!

--- On Mon, 8/31/09, Szakács Marius <[email protected]> wrote:

From: Szakács Marius <[email protected]>
Subject: [java programming] homework lab 1014
To: [email protected]
Date: Monday, August 31, 2009, 2:33 PM

Hi
I don't understand what these mean:
"The Student class has studentId instance variable whose type is Integer type." 
and 
"Move the studentCount static variable from the StudentRecord class to Student 
class."
My code is:

class Student{

private int studentId; //instance variable. 
//How can I use Integer type? Like this?
//private Integer studentId;
 
private static int studentCount = 0; //this is static variable and must I delete
//these static variable from StudentRecord class?
//or must I use?:
//StudentRecord.studentCount
}
I'm confused and I want a little help.
Thank you.


     







      
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to