well i've been trying to fix my code but i dont know what is wrong. im just a beginner in java and was lookong for help on trying to make this program...
Here is my code:
File 1
The error in file 1 is okay since i always get the same error on the past program i used to run.
File 2 import java.util.Scanner; public class File2{ public static void main(String[]args); Scanner user_input= = new Scanner (System.in); Pet1 myObject = new Pet1(); System.out.print("Enter Quiz 1: "); String courseName = user_input.nextLine(); System.out.println(); myObject.displayCourse(courseName); System.out.print("Enter Quiz 2: "); String courseName = user_input.nextLine(); System.out.println(); myObject.displayCourse(courseName); System.out.print("Enter Quiz 3: "); String courseName = user_input.nextLine(); System.out.println(); myObject.displayCourse(courseName); } }
And here is the errors i get in file 2
error1.bmperror1.bmp
this is supposed to be the output i just save what my friend posted
untitled.JPG
Please Help