Question: Another StudentGiven the Student class, do the following: Instantiate the two ( 2 ) Students with the following variable name & data: - student 1
Another StudentGiven the Student class, do the following:
Instantiate the two Students with the following variable name & data: student with: "John", "Smith", and student with: "Jane", "Smith", and
Print out the student information for both Students
import java.io;
import java.util.;
public class CodingQuestion
public static class Student
private String firstName;
private String lastName;
private double gradePercentage;
public StudentString firstName, String lastName, double gradePercentage
this.firstName firstName;
this.lastName lastName;
this.gradePercentage gradePercentage;
public void displayInfo
System.out.printfs s has a grade percentage of fn firstName, lastName, gradePercentage;
end of Student class
public static void mainString args
DO NOT CHANGE THE CODE ABOVE THIS LINE
WRITE YOUR CODE HERE
end of main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
