Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3128

Re: Double always returning 0.0

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!newsfeed.CARNet.hr!nntp.amis.hr!news.metronet.hr!not-for-mail
From Screamin Lord Byron <scre@min.dot>
Newsgroups comp.lang.java.programmer
Subject Re: Double always returning 0.0
Date Tue, 19 Apr 2011 11:02:09 +0200
Organization Metronet
Lines 10
Message-ID <iojj2h$4fn$1@news.metronet.hr> (permalink)
References <201104182005433244-jasonsavlov@mecom>
NNTP-Posting-Host 78.134.131.26
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-2
Content-Transfer-Encoding 7bit
X-Trace news.metronet.hr 1303203729 4599 78.134.131.26 (19 Apr 2011 09:02:09 GMT)
X-Complaints-To abuse@metronet.hr
NNTP-Posting-Date Tue, 19 Apr 2011 09:02:09 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8
In-Reply-To <201104182005433244-jasonsavlov@mecom>
X-Enigmail-Version 1.1.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3128

Show key headers only | View raw


On 19.04.2011 02:05, Jason S wrote:
> I'm trying to figure out why I can't seem to get my program to return
> the correct value here. It always returns 0.0 even though I (think) that
> everything is declared/cast correctly...
> 
> Code located at http://web.cs.sunyit.edu/~savlovj/CS249/pg472_8

Remember that instance variables aren't inherited. That is, you are
using values from Dog and Cat, rather than Pet, which are initialized to
their defaults.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-18 20:05 -0400
  Re: Double always returning 0.0 markspace <-@.> - 2011-04-18 17:43 -0700
  Re: Double always returning 0.0 Jim <jkorman@alltel.net> - 2011-04-18 20:11 -0500
  Re: Double always returning 0.0 Screamin Lord Byron <scre@min.dot> - 2011-04-19 11:02 +0200
    Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 11:16 -0400
      Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 11:18 -0400
        Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 11:20 -0400
          Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 11:57 -0400
          Re: Double always returning 0.0 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-04-19 16:04 +0000
            Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 17:22 -0400
          Re: Double always returning 0.0 Screamin Lord Byron <scre@min.dot> - 2011-04-19 19:08 +0200
          Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 14:03 -0400
            Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-19 14:06 -0400
            Re: Double always returning 0.0 Jason S <jason.savlov@gmail.com> - 2011-04-20 13:53 -0400
              Re: Double always returning 0.0 Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-04-20 18:06 +0000
                Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-20 14:11 -0400
                Re: Double always returning 0.0 Jason S <jason.savlov@gmail.com> - 2011-04-20 14:19 -0400
                Re: Double always returning 0.0 Lew <noone@lewscanon.com> - 2011-04-20 14:29 -0400
                [OT] Re: Double always returning 0.0 Stanimir Stamenkov <s7an10@netscape.net> - 2011-04-21 07:30 +0300
      Re: Double always returning 0.0 Screamin Lord Byron <scre@min.dot> - 2011-04-19 19:05 +0200
  Re: Double always returning 0.0 Jason S <jasonsavlov@me.com> - 2011-04-19 13:07 -0400
  Re: Double always returning 0.0 Roedy Green <see_website@mindprod.com.invalid> - 2011-04-19 16:30 -0700

csiph-web