Search:

Type: Posts; User: samfin

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    2,618

    Re: writing java code help

    The loss of precision is because the return type on get_monthlysalary() is int but _monthlysalary is a double value.

    The other exception where it can't find the class is another typo. One package...
  2. Replies
    9
    Views
    2,618

    Re: writing java code help

    When you say you're getting errors, can you post the errors you're getting please.
  3. Replies
    9
    Views
    2,618

    Re: writing java code help

    Just a quick one, can you put your code in the [ highlight=Java] [ /highlight] tags, makes it easier to read.
    Also and this is totally up to you, class names are usually written with capital...
  4. Replies
    9
    Views
    2,618

    Re: writing java code help

    You're pretty much there, just a few typos stopping it working and you haven't done a method to work out the annual salary.
    _dependents() I'm guessing should be get_dependants as that's what you've...
  5. Replies
    9
    Views
    2,618

    Re: writing java code help

    We can't do your homework for you, try to write the code, there are tutorials on this forum and info from Google and if you get stuck, post the code and the problem
Results 1 to 5 of 5