USE ARRAYS FOR THIS
public class Runner2
{
public static void main (String[] args)
{
StudentRecord myRecord1=new StudentRecord(); //create one object
//set values
myRecord1.setName("Sai");
myRecord1.setAddresss("VZM");
myRecord1.setAge(22);
myRecord1.setMathGrade(97);
myRecord1.setScienceGrade(85.7);
myRecord1.setEnglishGrade(88);
StudentRecord myRecord2=new StudentRecord(); //create another object
//set values
myRecord2.setName("Pavan");
myRecord2.setAddresss("VSKP");
myRecord2.setAge(20);
myRecord2.setMathGrade(89.5);
myRecord2.setScienceGrade(80.6);
myRecord2.setEnglishGrade(78.9);
}
}
USE ARRAYS FOR THIS
Trending now
This is a popular solution!
Step by step
Solved in 2 steps