I don't see Any Mistake but Out Says Class Expected At return code block.
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner read = new Scanner(System.in); double score1 = read.nextDouble(); double score2 = read.nextDouble(); double score3 = read.nextDouble(); double score4 = read.nextDouble(); double avgScore = getAverageScore(score1, score2, score3, score4); System.out.println(avgScore); } //create your method here public static double getAverageScore(double score1 ,double score2 ,double score3 ,double score4) {return double ((score1+score2+score3+score4)/4); } } OUTPUT: Main.java:15: error: '.class' expected public static double getAverageScore(double score1 ,double score2 ,double score3 ,double score4) {return double ((score1+score2+score3+score4)/4); ^ Main.java:15: error: not a statement public static double getAverageScore(double score1 ,double score2 ,double score3 ,double score4) {return double ((score1+score2+score3+score4)/4); ^ Main