Thank you.
Type: Posts; User: Caffeine
Thank you.
I'll soon find out :)
Thank you all for your help, I appreciate it.
Yeah both EmployeeDemo.java and Employee.java are separate, but both are in the chapter3 folder. And after running the EmployeeDemo.java file, it did compile and execute with the output I posted....
Yeah he mentioned how running the Employee.Demo will use the Employee.java as a sub file. So when putting both files in the same destination folder and running the Demo.java file, I get this output:...
When speaking to my professor over email, he tells me they are 2 separate .java files, and that
I'm failing to understand how to get the 2 separate files to work.
package chapter3;
// Employee class.
public class Employee
{
private String empName; // String to hold employee name.
private int empID; // Integer to hold employee ID.
private...
Okay I did as you stated but, it's still throwing that main method not found error. :confused:
Okay, this is what I've got, I dunno if it's 100% right but, now my problem is an error. The error reads
package chapter3;
// Employee class.
class Employee
{
private String empName; //...
Hello, I'm having difficulty with my Java code, my professor wants us to use the EmployeeDemo.java when writing our code and I can't seem to get what I am missing. Any help/tips is appreciated:
...