Recent Question/Assignment

Contents

Create an application that

Creates 4 students
Build upon the solutions of the previous labs (e.g., using app.java and student.java)
You will need a version of student.java that has a working whatsup( ) method
Creates a group
First you have to design the new Java class called group
A group has a name
A group has 4 students
Create a method in group.java that
displays the group name and the name of each student in the group
in app.java
using a method in group.java
from app.java, display information about what the third student in the group (retrieving information from the student in the group, not from student in the app) is up to now.
For instance: “John” is “doing Java”
Pay attention, you have to use a method in group.java
Suggestions:

Start by creating a class called group with only one attribute, GROUP_NAME
Make it work, using the app to display only the group name
Then you think how to add the students to the group (this is tricky…, but that’s what you have to learn with this lab)

Looking for answers ?