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...
Type: Posts; User: snowguy13
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...
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...
Hahahaha, thank you! :P I'm gathering that it works? ;D
By the way, sorry for the slow response; Minecraft is rather addicting. ;)
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...
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,...