Answer to Question #279794 in Java | JSP | JSF for TayyTayyy

Question #279794

You are required to write builds a record book for Projects being conducted at a department. A Project has an id, description, a list of members and start and end dates. 1.      Provide following in the Project class

a.        toString: to match the output that will be given till Saturday

b.       getTeamSize(): that finds and returns the size of the team working on this project c.   


1
Expert's answer
2021-12-14T21:33:49-0500
import java.util.Date;
import java.util.List;

public class Project {
    private int id;
    private String description;
    private List<Member> members;
    private Date start;
    private Date end;

    public int getTeamSize() {
        return members.size();
    }

    @Override
    public String toString() {
        return id + " " + description + " " + members + " " + start + " " + end;
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog