Search:

Type: Posts; User: mwebb

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: Referencing to Method. Incompatible Types Error.

    EDIT: Fixed output too. The most obvious mistake I somehow managed to surpass took me almost 24 hours to notice...#-o
  2. [SOLVED] Re: Referencing to Method. Incompatible Types Error.

    Well, one thing I noticed is that I'm only supposed to have 5 private instance variables. I added 3 more to use for the mutator methods (which I need). I think somehow I'm supposed to build the...
  3. [SOLVED] Re: Referencing to Method. Incompatible Types Error.

    fillup[index].calcDistance(); didn't come up as an error and seemed to be a potential solution. But the thing is I have to go by certain guidelines. For example:


    for (int index = 0; index <...
  4. [SOLVED] Re: Referencing to Method. Incompatible Types Error.

    Dang, you guessed pretty good. Though that example is in 2 classes as well. I tried plainly making a separate statement in the main saying something like fillup.calcDistance(); but it didn't...
  5. [SOLVED] Re: Referencing to Method. Incompatible Types Error.

    I thought I did that with myDist = myEndMiles - myStartMiles; in the calcDist method. Sorry I can't think straight. I have been on this literally all day (:|.
  6. [SOLVED] Re: Referencing to Method. Incompatible Types Error.

    Hmm, well I edited
    distance[index] = fillup[index].calcDistance(); to say
    distance[index] = fillup[index].getDistance();.

    It compiled but my output numbers in the terminal are all F'd up....
  7. [SOLVED] Referencing to Method. Incompatible Types Error.

    I'm gonna come out straight, this is a homework assignment. I almost got it done, but there is one main issue keeping me from compiling and finishing this. I have two classes. One is a tester (main...
Results 1 to 7 of 7