Search:

Type: Posts; User: Mr.777

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,718

    Re: need help with a function...

    Why don't you put this code


    if (contestantScore[index] < average)
    {
    aboveOrBelow = "below";
    }
    else if (contestantScore[index] > average)
    {
    aboveOrBelow = "above";
  2. Replies
    8
    Views
    1,718

    Re: need help with a function...

    What is index? From where index value is initiated?
    Where is index declared?
    You must read the beginners tutorials first. Coz you have a lack of understanding about declaration, initialization and...
  3. Replies
    8
    Views
    1,718

    Re: need help with a function...

    public String aboveOrBelow ()
    {
    String above;
    String below;

    if (contestantScore < average)
    {
    return below;
    }
    else
Results 1 to 3 of 3