Skip to content

Commit

Permalink
Avoid old constructor in Java example
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 22, 2024
1 parent 2462a76 commit 6627281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Java/examples/FRA.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) throws Exception {
IborIndex euribor3m = new Euribor3M(flatTermStructure);

ForwardRateAgreement myFra =
new ForwardRateAgreement(startDate, type, strike, notional, euribor3m, flatTermStructure);
new ForwardRateAgreement(euribor3m, startDate, type, strike, notional, flatTermStructure);
System.out.println(myFra.amount());
System.out.println(myFra.NPV());
}
Expand Down

0 comments on commit 6627281

Please sign in to comment.