Hello, This is my first post. I am taking a java programming class, my first, and it goes good some days and really bad the others. So I am working on an assignment and I cant figure out the 1 error I have. Any help would be nice! Thanks. The error I am getting is:
Ch7Ex12.java:13: illegal start of expression
public static void main(String[] args) throws FileNotFoundException
^
1 error
My code is:
//Michael
//Chapter 7 Example 12 assignment
//Ch7Ex12.java
// This program calculates GPA for male and females.
import java.io.*;
import java.util.*;
public class Ch7Ex12
{
{
public static void main(String[] args) throws FileNotFoundException
{
IntClass female = new IntClass();
IntClass male = new IntClass();
DoubleClass femaleGPA = new DoubleClass();
DoubleClass maleGPA = new DoubleClass();
DoubleClass averageFemaleGPA = new DoubleClass();
DoubleClass averageMaleGPA = new DoubleClass();
Bookmarks