Answer to Question #330439 in Java | JSP | JSF for maryam

Question #330439

·   

·          class Planet should include:

·          suitable fields as specified above.

·          a constructor to create a planet using suitable parameters

·          accessors to return its planet number, name, luxury rating

·          an ArrayList field to store Permit object references.. (declared and created)

·          mutator ; enter()which has a Permit as a parameter and adds it from the ArrayList

·          mutator leave()which has a Permit as a parameter, finds its position in the ArrayList and then removes using position.

·          an accessor which either says whether the planet is full (reached capacity) (..or still has capacity)

·          method to list all the Permits currently on the planet

·          methods to find and return details of one Permit on the planet

·          an accessor which returns a boolean saying whether a Permit is in the planet (in the ArrayList)

·          a toString () method which includes planet details and a list of the Permits in the planet



0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

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
APPROVED BY CLIENTS