//Following is the curve
final BlackVarianceTermStructure varianceCurve = new BlackVarianceCurve(today,dates,volatilities, new Actual365Fixed(), false);
((BlackVarianceCurve)varianceCurve).setInterpolation();
//Calculating blackVolatility using maturity as 12 days after today and strike as 20
volatility1 = varianceCurve.blackVol(date12.clone(), 20);
System.out.println("Interpolated BlackVolatility on BlackVarianceCurve = "+volatility1);
//Calculating blackVolatility using maturity as 22 days after today and strike as 30
volatility2 = varianceCurve.blackVol(date22.clone(), 30);
System.out.println("Interpolated BlackVolatility on BlackVarianceCurve = "+volatility2);