Design a java class named MyInteger. The class contains:
Implement the class. Write a client program that tests all methods in the class.
//Java codeimport java.util.Objects;public class MyInteger { /** * An int data field named value * that stores the int value represented by this object. */ private int value; /** * A constructor that creates a MyInteger * object for the specified int value. */ public MyInteger(int value) { this.value = value; } /** * * @return the int value. */ public int getValue() { return value; } public boolean isEven() { return value%2==0; } public boolean isOdd() { return !isEven(); } public boolean isPrime() { for (int i = 2; i <value/2 ; i++) { if(value%i==0) return false; } return true; } //static methods public static boolean isEven(int value) { return value%2==0; } public static boolean isOdd(int value) { return value%2!=0; } public static boolean isPrime(int value) { for (int i = 2; i <value/2 ; i++) { if(value%i==0) return false; } return true; } public static boolean isEven(MyInteger integer) { return isEven(integer.value); } public static boolean isOdd(MyInteger integer) { return isOdd(integer.value); } public static boolean isPrime(MyInteger integer) { return isPrime(integer.value); } public boolean equals(MyInteger o) { return value == o.value; } public boolean equals(int value) { return this.value == value; } public static int parseInt(char[] chars) { int sum =0; int zeroAsciiValue = (int)'0'; for (char ch:chars) { int temp = (int)ch; su ... See the full answer