/* A class that is similar to the Integer wrapper class, but one to demonstrate * writing your own class and also using static methods */ public class MyInteger { private int value; // the int datum that this will wrap public MyInteger(int newValue) { value=newValue; } public int getValue() { return value; // accessor } // methods to determine if the current value is even, odd or prime public boolean isEven() { if(value%2==0) return true; else return false; } public boolean isOdd() { if(value%2==1) return true; else return false; } public boolean isPrime() { int i=2; // i is the divisor, can we find an i between 2 and value-1 that divides into value? while(i