// This is like the Integer wrapper class in that it allows us to store a primitive int in an object. Aside from a 1-arg constructor to set the internal int value and an accessor, // there are methods to determine if the int value is even, odd or prime, or if this MyInteger object is storing the same int value as another MyInteger object or an int value. // There are static methods to determine if a int value is even/odd/prime and if a MyInteger is even/odd/prime. There are two parseInt methods that can be passed an array of // chars or a String which, if all of the individual chars are digits, it will compute and return the appropriate int value. Not called for, but another two methods are the same // except that they take the int value, wrap it into a MyInteger and return the MyInteger object. public class MyInteger { private int value; // the wrapped value public MyInteger(int v) // 1-arg constructor, we won't bother with a 0-arg constructor { value=v; } public int getValue() // accessor { return value; } public boolean isEven() // methods to determine if the int value stored in this MyInteger is even, odd or prime { return value%2==0; } public boolean isOdd() { return value%2==1; } public boolean isPrime() { int divisor=2; // we divide the int value by all numbers between 2 and value-1. If any divide evenly, then this is not a prime number while(divisor