Search:

Type: Posts; User: Caffeine

Search: Search took 0.10 seconds.

  1. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    Thank you.
  2. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    I'll soon find out :)

    Thank you all for your help, I appreciate it.
  3. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    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....
  4. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    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:...
  5. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    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.
  6. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    package chapter3;

    // Employee class.
    public class Employee
    {
    private String empName; // String to hold employee name.
    private int empID; // Integer to hold employee ID.
    private...
  7. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    Okay I did as you stated but, it's still throwing that main method not found error. :confused:
  8. Replies
    19
    Views
    1,846

    [SOLVED] Re: Help with Employee Class

    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; //...
  9. Replies
    19
    Views
    1,846

    [SOLVED] Help with Employee Class

    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:

    ...
Results 1 to 9 of 9