Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

3 Combination Implement a class, called Combination, to store three integer values (ints).

displays “1:2:3”.

The interface of the class Combination consists therefore of its constructor, the method equals and the method toString.

Ideally, the input data should be validated. In particular, all the values should be in the range 1 to 5. However, since we do not yet have the tools to handle exceptional situations, we will assume (for now) that all the input data are valid!

Note: Simpler code is better and it is worthwhile spending time cleaning up code even if it was already working

Hint: my implementation is approximately 20 lines long, not counting blank lines. This is not a contest to write the shortest class declaration. I am providing this information so that you can evaluate the relative complexity of the tasks.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question