public static void main(String args[]){
    
    int[] reactantsA = {43, 18};
    int[] productsA = {4, 52, 1};
    
    int[] reactantsB = {12, 18};
    int[] productsB = {6, 1, 52};
    
    int[] reactantsC = {18, 43};
    int[] productsC = {52, 4, 1};
    
    int[] reactantsD = {18, 43};
    int[] productsD = {52, 4, 1, 4};
    
    Reaction A = new Reaction(reactantsA, productsA);
    Reaction B = new Reaction(reactantsB, productsB);
    Reaction C = new Reaction(reactantsC, productsC);
    Reaction D = new Reaction(reactantsD, productsD);
    
    boolean AequalsB = A.equals(B);
    boolean AequalsC = A.equals(C);
    boolean CequalsA = C.equals(A);
    boolean AequalsD = A.equals(D);
    
    if(AequalsB){
      System.out.printf("A equals B\n");
    }
    
    if(AequalsC){
      System.out.printf("A equals C\n");
    }
    
    if(CequalsA){
      System.out.printf("C equals A\n");
    }
    if(AequalsD){
      System.out.printf("A equals D\n");
    }
    
    System.out.printf(""+A.getID()+"\n");
    System.out.printf(""+B.getID()+"\n");
    System.out.printf(""+C.getID()+"\n");
    System.out.printf(""+D.getID()+"\n");
    
  }