Search:

Type: Posts; User: vysero

Search: Search took 0.18 seconds.

  1. Re: Having trouble with communicating between methods, in need of assistance.

    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...
  2. Re: Having trouble with communicating between methods, in need of assistance.

    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...
  3. Re: Having trouble with communicating between methods, in need of assistance.

    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...
  4. Re: Having trouble with communicating between methods, in need of assistance.

    Right so I think you're referring to the printSummary method. Here's what I have so far:


    public static void printSummary()
    {
    ...
  5. Having trouble with communicating between methods, in need of assistance.

    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...
Results 1 to 5 of 6