In this
repl.it
Create a simply integer class called EasyInt that will keep track
of one integer:
- when constructed have its value automatically set to 0 if no
parameter is given
- when constructed have its value set to the parameter
- have a method called setValue
- have a method called getValue
- have a method called isEven which will return true or false
- have a method called toString
- Exceeds: create a method isSymmetrical that will return true
or false if it is symmetrical (Ie 545 is, 566 is not)
|