Sponsored Link •

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
simple method : public boolean divides (int n, int m) making use of "%" modulo which gives the rest of m divided by n.Here and in the following there could some grammatical(concerning Java) mistakes, but you said you needed the basic idea. next function public int sumdiv (int n) Using these functions public boolean amicable(int n) Added to a "for (..).." in the main method this should do the job. public class number } i hope i could help you
Replies: 
Sponsored Links
