Question: 5 . Write a test class with a main method that uses java. util. Random and a loop to: a . Generate two new Pok

5. Write a test class with a main
method that uses
java. util. Random and a loop to:
a. Generate two new Pokmon
of random types, attack
(50-100), and health
(500-1000). There should be
an equal chance to generate
each type of Pokmon.
b. Battles them against each
other in an Arena.
c. Prompts the user to see if
they would like to watch
another battle. Stop if the
user chooses to quit.
6.Create a README.txt file in your
project and answer the following
questions:
a. How is this lab an example
of reuse through
inheritance?
b. Which parts of the lab are
examples of
polymorphism?
5 . Write a test class with a main method that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!