Search:

Type: Posts; User: RyanT

Search: Search took 0.17 seconds.

  1. Replies
    9
    Views
    1,214

    Re: Help with this names program

    I got it working. Thanks for the help!
  2. Replies
    9
    Views
    1,214

    Re: Help with this names program

    name1length and namelength are both determined by the name entered. The same goes for name and name1, but I have longest being determined in those if statements. Which ever name is longer is supposed...
  3. Replies
    9
    Views
    1,214

    Re: Help with this names program

    if (name1length>namelength){
    longest=name1;
    }
    if (namelength>name1length){
    longest=name;
    }

    Those are my if statements, and I can't really explain why it doesn't work. It is like my program...
  4. Replies
    9
    Views
    1,214

    Re: Help with this names program

    I tried to save the longest one using the if statement, but it doesn't work so I guess I did something wrong with it. Is there any other way I could do it?
  5. Replies
    9
    Views
    1,214

    Help with this names program

    I have to make a program that asks the user for a list of names, and then displays the number of names asked and the longest name in capital letters.
    So far, this is what I have:


    public class...
Results 1 to 5 of 5