Question: Please make a java programming. Design a class named MyLong. The class contains: 1. A long data field named value that stores the int value

Please make a java programming.  Please make a java programming. Design a class named MyLong. The

Design a class named MyLong. The class contains: 1. A long data field named value that stores the int value represented by this object. 2. A constructor that creates a MyLong object for the specified long value. 3. A getter method that returns the long value. 4. The methods isEven(), isOdd), and isPrime() that return true if the value in this object is even, odd, or prime, respectively. The static methods isEven(long), isOdd(long), and isPrime(long) that return true if the specified value is even, odd, or prime, respectively The static methods isEven(MyLong), isOdd(MyLong), and isPrime(MyLong) that return true if the specified value is even, odd, or prime, respectively 5. 6. 7. The methods equals long) and equals(MyLong) that return true if the value in this object 8. A static method parseLong(char[]) that converts an array of numeric characters to a long 9. A static method parseLong(String) that converts a string into a long value is equal to the specified value value. 10. Draw the UML diagram for the class and then implement the class. Write a client program that tests all methods in the class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!