my code is below.....why do i get this error message? Error: Could not find or load main class AuthorPay2 Caused by: Java.lang.ClassNotFoundException: AuthorPay2 import java.text.DecimalFormat; import java.util.Scanner; public class AuthorPay2 { public static void main(String[] args) { //Declaring variables double largestAmount = 0.0, avgAmt = 0.0,totAmount=0.0; int totNoOfPayments = 0; //Creating an integer array int countPayLevels{} = new int[3]; //DecimalFormat class is used to format the output DecimalFormat df=new DecimalFormat(".00"); /* *Creating an Scanner class object which is used to get the inputs *entered by the user */ Scanner sc = new Scanner(System.in); while(true) { //Getting the input entered by the user System.out.print("Enter Enter the length of the story :"); int length = sc.nextint(); if(length!=-1) { System.out.print("Enter Enter the level of the author :"); char level = sc.next().charAt(0); double amount = calculateAmount(length, level); if (largestAmount<amount; {largestAmount=amount; } totAmount +=amount; totNoOfPayments++; if (level == 'A' || length == 'a'){ countPayLevels[0]++; }else if (level == 'B' || length == 'b'){ count PayLevels{1}++; } else if (level == 'C' || length == 'c'){ count PayLevels[2]++; } System.out.println("Length of the story: "+ length+" Amount to be paid; $" +df.format(amount)); } else { avgAmt = totAmount/totNoOfPayments; System.out.println("nTotal no of payments :"+totNoOfPayments); System.out.println("No of Payments made at level 'A':"+countPayLevels[0]); System.out.println("No of Payments made at level 'B':"+countPayLevels[1]); System.out.println("No of Payments made at level 'C':"+countPayLevels[2]); System.out.printf(The average amount paid for a story :%.2f/n",avgAmt); System.out.printf(The largest amount paid for a story :%.2f/n",largest Amount); break; } } } private static double calculateAmount(int length, char level)} double amount = 0.0; if (length < 7500) { amount = 0.08* length; }else if (length >= 7500 && length < 8000) { amount = 600; }else if (length >= 8000 && length < 17500) { amount = 0.075* length; }else if (length >= 17500 && length <= 190000) { amount = 1313; }else if (length > 19000) { amount = 0.07* length; } if (level == 'A' || length == 'a') { amount = 1.75* amount; }else if (level == 'B' || length == 'b'){ amount = 1.25* amount; } return amount; } }.