ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

Use of Java Collections (Not Required, 2 bonus marks) 6. You are encouraged to use collections such as ArrayList and HashMap. ArrayList implements an…

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

please help me to get the answer.I do not know where to start

  • Attachment 1
  • Attachment 2
  • Attachment 3
  • Attachment 4
  • Attachment 5
  • Attachment 6

Use of Java Collections (Not Required, 2 bonus marks)6. You are encouraged to use collections such as ArrayList and HashMap. ArrayList implementsan array which can grow indefinitely. HashMap allows an association to be created betweenkeys and objects. Using such classes also reduces the amount of code required as theyprovide methods for retrieving required objects easily.ArrayList<Comment> comments = new ArrayList<Comment> ();comments . add (comeComment ) ;To extract the 4th element:Comment c4 = comments. get); // index starts at 0You can use HashMap for storing objects, which have unique primary keys. For example,HashMap<String, Content> contents = new HashMap<String, Content>( );To add a content we use:contents. put ( new Game ( . . . ));To extract the content, use:content contentl = contents . get ("G101"); // return null if no such content is foundInput and outputYour program should hard code a list of objects including content objects, user objects andcomment objects etc. for testing purpose. See the skeleton sample code. (During marking, wemay replace these objects with our own to test your program).You program should have a simple menu to allow an admin to perform aforementioned taskssuch as:* upgrading a member to premium account;* purchasing one item for one user:* listing all available contents;* showing all purchased items of a user,*showing all comments of a content;Input validation and error handling should be implemented. Input and output should be inside ofthe class PlayStore Main.

ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!