My first java project! need help :) : I wanted to know why there is an error and how to fix it for my java project.

I have to make exactly same out as these.

What is your annual interest rate as a decimal? (ex: 0.045): .033 How many years will your mortgage be held? 15 What amount of the mortgage did you borrow? 300000  
The number 0.033 can be represented as 3.3% The mortgage amount is $300,000.00 The monthly payment in dollars is $2,115.30 The total payment in over the years in dollars is $380,754.76 The overpayment is $80,754.76 The overpayment as a percentage of the mortgage is 26.9


And this is what I did on Eclipse.

`enter code here`double annIntRat;
		int nOY;
		int borrowMor;
		int M;
		double monthPay;
		double mIR;
		
		Scanner scnr = new Scanner(System.in);

		// Your code should go below this line
		System.out.print("What is your annual interest rate as a decimal? (ex 0.045): ");
		annIntRat = scnr.nextDouble();
		System.out.print("How many years will your mortgage be held? ");
		nOY = scnr.nextInt();
		System.out.print("What amount of the mortgage did you borrow? ");
		borrowMor = scnr.nextInt();		
		DecimalFormat df = new DecimalFormat("0.0");
		System.out.println("\nThe number "+annIntRat+" can be represented as "+df.format((annIntRat)*100)+"%");
		NumberFormat defaultFormat = NumberFormat.getCurrencyInstance();
		M=defaultFormat.format(borrowMor);  //< Here is the error and tells me to change to String.But if I do so, there will be an error down there for monthPay=.....
		System.out.println("The mortgage amount is "+M);
		mIR=(annIntRat)/12;
		monthPay=(mIR * M)/(1-(1/Math.pow(1+mIR,12*nOY)));
		