Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How come I keep getting an error when i compile this? Says itcannot find symbol?

ID: 3615203 • Letter: H

Question

How come I keep getting an error when i compile this? Says itcannot find symbol???
public class OneStudentB // test class StudentB { public static void main(String[] argc) { StudentB myStudent = new StudentB(); myStudent.setName ("Allen"); System.out.println("Your name is " +myStudent.getName()); myStudent.setScore(94); System.out.println("Your score is " +myStudent.getScore()); } } How come I keep getting an error when i compile this? Says itcannot find symbol???
public class OneStudentB // test class StudentB { public static void main(String[] argc) { StudentB myStudent = new StudentB(); myStudent.setName ("Allen"); System.out.println("Your name is " +myStudent.getName()); myStudent.setScore(94); System.out.println("Your score is " +myStudent.getScore()); } }

Explanation / Answer

The problem does not lie in OneStudentB. it is in StudentB class. Send that class code as well or try to find the problem in that class

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote