Search:

Type: Posts; User: snowguy13

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    1,954

    Re: Problem with School Assignment.

    No, you don't need to do that. Speed is a private variable of Ship, which means only the Ship class can directly access it (that's why we need getters and setters, so other classes can still call the...
  2. Replies
    11
    Views
    1,954

    Re: Problem with School Assignment.

    Haha! :D Minecraft is pretty awesome.

    So... Your problem is with the timeToCrossEnglishChannel() method. First of all, unless I'm mistaken, the PDF you provided said that this method won't take...
  3. Replies
    11
    Views
    1,954

    Re: Problem with School Assignment.

    Hahahaha, thank you! :P I'm gathering that it works? ;D

    By the way, sorry for the slow response; Minecraft is rather addicting. ;)
  4. Replies
    11
    Views
    1,954

    Re: Problem with School Assignment.

    No, no, no; not on your ShipTest class, in your Ship class. :P The only constructor that you have in your Ship class is one that takes two arguments, but you want to create a new Ship with no...
  5. Replies
    11
    Views
    1,954

    Re: Problem with School Assignment.

    You're getting an error on this line because you haven't defined a constructor with no arguments. By default and for each class you make, Java makes a constructor that takes no arguments. However,...
Results 1 to 5 of 5