write a java program to find Amicable pairs below 10000 in java
public class Amicable{ public static void main(String args[]) { for(int i=2; i<=10000; i++) { for(int j=i+1; j<=10000; j++) { if(facSum(i)==j&&facSum(j)==i) { System.out.println(i+” and “+j+” are Amicable!”); } } }} public static int facSum(int a)…