Search:

Type: Posts; User: maple1100

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    1,098

    [SOLVED] Re: Java constructor/object

    @pbrockway2, wouldn't the value of distanceAnnual change to what ever (distanceDay + amountAYear) is and then return that value? Could you explain why it return 0 ? Also, how can I make it display...
  2. Replies
    5
    Views
    1,098

    [SOLVED] Java constructor/object

    Could someone help me figure out why is the print out = 0.0? Thanks




    public class AnnualFuelUse
    {
    //Variables
    private int distanceDay;
    private double amountAYear ,...
Results 1 to 2 of 2