In a folder I only have 2 files. Main.java and ArrayQueue.class
Main.java is the following:
class Main{
public static void main(String args[])
{
ArrayQueue s = new ArrayQueue()
}}
But it throws an error stating the following:
C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\Main2.java:11: cannot access ArrayQueue
bad class file: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\ArrayQueue.class
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
ArrayQueue a = new ArrayQueue();
^
1 error
Please help