. Hello, I'm new with programming, and new with Java. If someone can help me I will be gratefull. How can I solve this error:
Error: Could not find or load main class javaapplication1.JavaApplication1
Java Result: 1
and the code is:
import java.util.Scanner;
class JavaApplication1{
public static void main(String[] args) {
scanner input = new scanner(System.in);
int total = 0;
int grade;
int average;
int counter =0;
while(counter < 10){
grade = input.nextInt();
total = total+grade;
counter++;
}
average = total/10;
system.out.println("your average is" +average);
}
}
Thank you!