budget/src/main/java/budget/backend/money/Currency.java
@Override
  public int compareTo(Currency o) {

    CurrencyExchanger ex = new CurrencyExchanger();
    int thisConv = ex.convert(this.amount, this.currency, o.getCurrency());
    
    return thisConv-o.getAmount();

  }
/**
   * Decide which object is bigger based on the amounts related to the object in the given object's currency
   * 
   * @param o the object to be compared.
   * 
   * @return a negative integer, zero, or a positive integer as this object is
   *         less than, equal to, or greater than the specified object.
   */
Decide which object is bigger based on the amounts related to the object in the given object's currency

@param o the object to be compared.

@return a negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object.
Decide which object is bigger based on the amounts related to the object in the given object ' s currency @param o the object to be compared . @return a negative integer zero or a positive integer as this object is less than equal to or greater than the specified object .
@Override
  public int compareTo(Currency o) {
    CurrencyExchanger ex = new CurrencyExchanger();
    int thisConv = ex.convert(this.amount, this.currency, o.getCurrency());
    return thisConv-o.getAmount();
  }
@ Override public int compareTo ( Currency o ) { CurrencyExchanger ex = new CurrencyExchanger ( ) ; int thisConv = ex . convert ( this . amount , this . currency , o . getCurrency ( ) ) ; return thisConv - o . getAmount ( ) ; }
Decide which object is bigger based on the amounts related to the object in the given object's currency
Decide which object is bigger based on the amounts related to the object in the given object ' s currency