Turns out my deploy method in my ship class is wrong as well. I thought I had it working but when i double checked I noticed I was wrong. So there has to be a way to make the deploy method do nothing...
Type: Posts; User: vysero
Turns out my deploy method in my ship class is wrong as well. I thought I had it working but when i double checked I noticed I was wrong. So there has to be a way to make the deploy method do nothing...
I get what you're saying, I think. I need a method that will give me the amount of units of fuel each ship has used and its name right? So not just the onBoard amount. For instance, if a ship has 100...
Hmm still kind of stuck. Not sure what you're getting at exactly, do I need to create a method in class Ship that tracks the fuel capacity and name of the ship and then call that from the fleet...
Right so I think you're referring to the printSummary method. Here's what I have so far:
public static void printSummary()
{
...
Okay so here's the assignment:
Problem Statement
You have been commissioned by the US Navy to develop a system for tracking the amount of fuel consumed by fleets of ships. Each ship has a name...