Search:

Type: Posts; User: newbie

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,640

    Re: Whats wrong with my code?

    public Robot was fine as it's his constructor.
    As long as there aren't any statements after his returns, he won't be given any compile-time errors.
    Good try though :)
  2. Replies
    3
    Views
    1,640

    Re: Whats wrong with my code?

    Only read a tiny bit, You need to give more detail as to what the error is that you're getting.

    A quick thing i noticed that I'm assuming that you need is


    public Robot(double x, double y) {...
Results 1 to 2 of 2