Search:

Type: Posts; User: vendettabf

Search: Search took 0.09 seconds.

  1. Replies
    15
    Views
    8,702

    Re: Find the two largest number

    well if it was just that alone it would be an else, but since there is a second argument i didn't make it an else. if there is a better way to write that syntax, please do tell.

    i dont know what...
  2. Replies
    15
    Views
    8,702

    Re: Find the two largest number

    well after reading your comment, though i did not actually took and pen and paper out, i studied my code and noticed that my approach was flawed. when a number is given that is larger than the...
  3. Replies
    15
    Views
    8,702

    Re: Find the two largest number

    i dont know... it does seem necessary now that you mention it. the problem still persists tho xD.
  4. Replies
    15
    Views
    8,702

    Re: Find the two largest number

    well for the first if statement "if (currentNum > secLargestNum && currentNum > largestNum)", i'm saying that if the user input a number that is greater than the current second largest number and...
  5. Replies
    15
    Views
    8,702

    Find the two largest number

    this exercise was from the book "Java how to program 9th edition".

    you ask the user to input 10 numbers and your program should find the largest number and the second largest number out of the 10....
Results 1 to 5 of 5