What if debugging activity

This program has some errors please fix it so that it runs properly.

import java.util.Scanners;

public class StudentRecordReader {

    public static void main(String][ args) {
        String fname, lname;
        int gpa;

        Scanner keyboard = new Scanner(System.in);

        System.out.print( "Student's First Name? " );
        fname = keyboard.next();

        System.out.print( "Student's Last Name? " );
        lname = keyboard.next();

        System.out.print( "Student's GPA? " );
        gpa = keyboard.nextDouble();

        System.out.println();
        System.out.println("Student Name :" + fname + " " + lname);
        System.out.println("Student GPA :" + gpa);
        if (gpa >= 3)
        {
            System.out.println("This student is in good standing.");
        } else if (gpa = 1)
        {
            System.out.println("This student is on academic probation.");
        } else
        {
            System.in.println("This student has been expelled.");
        }
    }
}

results matching ""

    No results matching ""