extra credit help

I have already done the assignment so all I need is someone to add for me the extra credit step. Here are the instructions and I will be also attaching the assignment as I have it done and got a perfect score on it. Write a new program called TrickOrTreat that will do the following:
In a while loop, say “Trick or Treat!”, and allow the user to type in the name of a candy and store it in an ArrayList. Once the user types “Trick”, then the loop should stop. Then, print out the total number of candies on the screen. (See example below) [1 points]

Write a method called countSnickers that will take an ArrayList of candy as an argument, and return the total number of Snickers candy you have. You should print out this value in the main method. [2 points]

Overload the countSnickers method to take a conventional array (not ArrayList) of candy as an argument, and return the total number of Snickers candy you have. We will not use this method, just create it only. [1 points]

Write another method called search that will take two arguments: an ArrayList of candy and the name of one candy. In the main method, ask the user which candy do you want to search for, and then pass the ArrayList along with the name of the candy that the user typed to the search method. The search method will loop through the array and print out how many of those candies exist (See example below). [2 points]

Extra Credit [+1 point]:
Write JavaDoc style comments for all classes and all methods in the program
Run the JavaDoc tool to generate an API for your program. Zip up the doc folder that it created, and attach that along with your assignment.
Example Output (user input in orange)Trick or treat!SnickersTrick or treat!M&MsTrick or treat!Almond JoyTrick or treat!HersheysTrick or treat!TwixTrick or treat!SnickersTrick or treat!TrickYou have 6 total candies in your Halloween bag!You have 2 Snickers candy bars!What candy do you want to search for?Almond JoyYou have 1 Almond Joy candy!Happy Halloween!

 

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"