Question: 5 . Write a test class with a main method that uses java. util. Random and a loop to: a . Generate two new Pok
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
and health
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.
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?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
