Search:

Type: Posts; User: adi2609

Search: Search took 0.19 seconds.

  1. Replies
    5
    Views
    1,645

    [SOLVED] Re: Can't find solution for error in my code..

    public double getAverage()
    {
    //add body of getAverage
    average = (test1 + test2) / 2.0;
    return average;
    }

    It shows that error happens average = (test1 + test2)...
  2. Replies
    5
    Views
    1,645

    [SOLVED] Re: Can't find solution for error in my code..

    possible loss of precision
    required: int; found: double
  3. Replies
    5
    Views
    1,645

    [SOLVED] Can't find solution for error in my code..

    Here is my code



    /**
    * Write a description of class Student here.
    *
    * @author ...
    * @version ...
    */
Results 1 to 3 of 3