PROGRAMMING:Defining the completion method
If a number is exactly equal to the sum of its factors (except itself), it is called "perfect". For example, 6 = 1 + 2 + 3, so 6 is a perfect number. In the Main class, define a method method named isPerfect return type Boolean, this method requires receiving an integer entered by the user, and determines whether the integer is the perfect number, returns the result of judgment, inputs the integer in the main function through keyboard, then calls isPerfect to determine whether the integer is a perfect number, if it is to output n:Yes, otherwise output n:No. N is the specific number, in which the format of the calling method in main method is: boolean result = isPerfect (n);
###Input format:
Enter an integer from the keyboard
###Output format:
Output yes or no on the display
###Input example:
Here is a set of inputs. For example:
```in
six
```
###Output example:
The corresponding output is given here. For example:
```out
6:Yes
```
answer:If there is no answer, please comment
###Input format:
Enter an integer from the keyboard
###Output format:
Output yes or no on the display
###Input example:
Here is a set of inputs. For example:
```in
six
```
###Output example:
The corresponding output is given here. For example:
```out
6:Yes
```
answer:If there is no answer, please comment