I have a program titled "Averages.Java" that runs fine in my IDE but when I navigate to the proper location for the program in command prompt and attempt to run it, I'm given the error message
"Error: Could not find or load main class Averages Caused by: java.lang.ClassNotFoundException: Averages
Here is the code for the program
import java.util.Scanner;
public class Averages1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter first user name: ");
String firstName = in.next();
System.out.print("Input first number: ");
int num1 = in.nextInt();
System.out.print("Enter second user name: ");
String secondName = in.next();
System.out.print("Input second number: ");
int num2 = in.nextInt();
System.out.print("Enter third user name: ");
String thirdName = in.next();
System.out.print("Input third number: ");
int num3 = in.nextInt();
System.out.println(firstName +": "+ num1);
System.out.println(secondName +": "+num2);
System.out.println(thirdName +": "+num3);
System.out.println("Total of 3 numbers is : " + (num1 + num2 + num3));
System.out.println("Average of 3 numbers is: " + (num1 + num2 + num3) / 3);
}
}