Question: Copy the A 1 Character java class definition included with the assignment and add it to your project / folder . Modify the code to
Copy the A
Character java class definition included with the assignment and add
it to your project
folder
Modify the code to match your theme, distinguishing your
work from others.
If you are compiling code at the terminal, you can simply copy the java file into the
same folder as your own Java program. If using an IDE like Eclipse, use the menu
to add the java file to your project
Add to the character class a class method that accepts a sequence
list or array
or
of Character objects, uses recursion to simulate interacting with every
Character in the sequence
in any order
by printing information and using the
Character's attribute data
This means a different call must be used to simulate with each character in the
sequence. Choose your own unique way to interact. For example, the method could
print statements describing the Character battling each Character in the sequence.
HINT: you may want to design your method to use the parameter to 'track' the
index each call 'moves' to the next location in the sequence
Develop your own Java class to demonstrate the capabilities for this assignment
a
Develop a main method that implements the following:
i
Create a Character object
the same type as the one developed for step
ii
Create a sequence of separate Character objects of length
choose a
unique number
including unique data in each Character object
For example, you could create an array of Character objects
iii. Pass the sequence into your recursive method
described in step
to simu
late your Character interacting with every Character in the sequence.
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
