Question: *USING JAVA* Create a Generic Matrix class that does addition for any Comparable object. You have to create 4 classes in total. One main class

*USING JAVA* Create a Generic Matrix class that does addition for any Comparable object. You have to create 4 classes in total. One main class thats called Generic Matrix, a sub class called IntegerMatrix which does addition and multiplication for any comparable object. Then a StringMatrix class that does addiction with words for example "ab" + "cd" and a TestMatrix class which runs the program. The output should look like the following. Thank you.

Integer Matrix

1 + 2 = 3

3 + 4 = 7

1 * 2 = 2

3 * 4 = 12

---------------

String Matrix

ab + cd = abcd

de +fg = defg

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 Databases Questions!