Question: Why is it saying it cant run correctly public class Main { public static void main ( String [ ] args ) { / /

Why is it saying it cant run correctly
public class Main {public static void main(String[] args){// Create Address objects for the studentsAddress home = new Address("555 School St", "Atwater", "OH",44201);Address school = new Address("4676 Oak Road", "Streetsboro", "OH",44241);// Create a Student object using the constructor and their test scoresStudent student1= new Student("Jimmy", "Newtron", home, school, 85,90,78);// Create Student object using the constructor with the default test scoresStudent student2= new Student("Timmy", "Turner", home, school);// Test setTestScore and getTestScore methodsstudent2.setTestScore(1,88);student2.setTestScore(2,92);student2.setTestScore(3,81);// Print the student detailsSystem.out.println(student1);System.out.println();System.out.println(student2);}}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!