10.3 (The My Integer class) Design a class named My Integer. The class contains: 1 An int data field named value that stores the int value represented by this object. I A constructor that creates a My...

Hello, I don’t understand this Java Question may someone help me out, may you also submit the completed code typed out the code in text form please instead of a screenshot of a screenshot ?10.3 (The My Integer class) Design a class named My Integer. The class contains:<br>1 An int data field named value that stores the int value represented by<br>this object.<br>I A constructor that creates a My Integer object for the specified int value.<br>I A getter method that returns the int value.<br>The methods isEven (), isodd (), and isPrime () that return true if the<br>value in this object is even, odd, or prime, respectively.<br>1 The static methods isEven (int), isodd (int), and isPrime (int) that<br>return true if the specified value is even, odd, or prime, respectively.<br>1 The static methods isEven (MyInteger), is0dd (MyInteger), and<br>isPrime (MyInteger) that return true if the specified value is even, odd,<br>or prime, respectively.<br>The methods equals(int) and equals (MyInteger) that return true if<br>the value in this object is equal to the specified value.<br>I A static method parseInt (char[]) that converts an array of numeric<br>characters to an int value.<br>I A static method parseInt (String) that converts a string into an int value.<br>Draw the UML diagram for the class then implement the class. Write a client<br>program that tests all methods in the class.<br>

Extracted text: 10.3 (The My Integer class) Design a class named My Integer. The class contains: 1 An int data field named value that stores the int value represented by this object. I A constructor that creates a My Integer object for the specified int value. I A getter method that returns the int value. The methods isEven (), isodd (), and isPrime () that return true if the value in this object is even, odd, or prime, respectively. 1 The static methods isEven (int), isodd (int), and isPrime (int) that return true if the specified value is even, odd, or prime, respectively. 1 The static methods isEven (MyInteger), is0dd (MyInteger), and isPrime (MyInteger) that return true if the specified value is even, odd, or prime, respectively. The methods equals(int) and equals (MyInteger) that return true if the value in this object is equal to the specified value. I A static method parseInt (char[]) that converts an array of numeric characters to an int value. I A static method parseInt (String) that converts a string into an int value. Draw the UML diagram for the class then implement the class. Write a client program that tests all methods in the class.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here