Hi, I'm learning Java programming through a Youtube video. Int his video the topic is multiple classes, objects, and methods. In the video I was told to go into my IDE (Netbeans), to create a new class call tuna from my source package and name the newly created class tuna. So now I have two .java file types; one is MultipleClasses which contains my main method and the newly created class and method call simpleMessage in tuna.java.
Here is the class containing my main method call MultipleClasses.java file:
Here is my newly created class tuna.java file:
When I follow the video I input the code exactly and checked it for spelling or syntax errors, and I run the code in my Netbeans IDE I get this error build message;
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: class tuna
location: class multipleclasses.MultipleClasses
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
What is going on here? I followed the instructional video exactly. How did it work for him, vene though he was using Eclipse?