In this lab when you create the project you let the system declare the
name of the package and the main class for you, Just type in the name
of your project. "MyOwnProject" and click finish. Next thing that you
do is to expand the project and right click on the package,
myownproject and select new java class. Name it Student, and make sure
it puts it in the myownproject package. Repeat this and create the
StudentRecord.

Next part is to actually write the code for the classes. Hope this
helps you get started.

On 7/12/09, ashu <[email protected]> wrote:
>
> *Create a Student class as following:
>   -The Student class has StudentRecord class as an instance variable.
> Name it as studentRecord.
>   -You can use the StudentRecord class from the
> MyStudentRecordExampleProject above or you can create a new one - the
> only requirement is that it has to have at least one instance variable
> of its own.
>
>   -The Student class has studentId instance variable whose type is
> Integer type.
> Move the studentCount static variable from the StudentRecord class to
> Student class.
>
> *Rewrite main.java as following
>   -Create 3 instances of Student class and initialize them accordingly
> - use whatever initialization values that  are appropriate.
>
>   -Display the information of each student including the student id,
> name.
> Display the studentCount.
>
> i'm unable to understand the problem. what i took out from above
> problem is:
>> i have to create two classes Student and StudentRecord
>> i have to create Integer type variable studentId
>> i hav to change values from studentrecord class
> im confused because of
>> Rewrite main.java which class is this, is it the studentrecord class
>>how do i can create an instance of mainclass(StudentRecord) in student
>> class when student class dont have a main method.
>
> im stucked here is it possible for me to skip this homework and submit
> it later. meanwhile can i submit other homeworks???
>
> Ashwani Kumar
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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