Description: 1, write a Java application. The user from the keyboard to enter a whole number between 1 ~ 99999, Cheng
Order to determine this number is a few numbers, and determine whether this number is a palindrome. Palindrome refers to the
Reverse order with the number of figures obtained by the same number and the original number, such as 12121 and 3223 are palindromic
Number.
2, write a Java application program that has a Rational (rational) class, specific to
Requirements are as follows:
? Rational class has two member variables of type int, the name was numerator (numerator) and
denominator (denominator).
? Provides Rational add (Rational r) method, that is rational to call the specified method and parameters
Rational to do addition operations, and returns a Rational object.
? Provides Rational sub (Rational r) method, that is rational to call the specified method and parameters
Rational to do subtraction, and returns a Rational object.
? Provides Rational muti (Ratio
To Search:
- [youlishu] - Define a rational number class, achieve
File list (Check if you may need any files):
java1.txt