Search:

Type: Posts; User: vendettabf

1. Thread: Find the two largest number

by vendettabf
Replies
15
Views
3,644

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. Thread: Find the two largest number

by vendettabf
Replies
15
Views
3,644

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. Thread: Find the two largest number

by vendettabf
Replies
15
Views
3,644

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. Thread: Find the two largest number

by vendettabf
Replies
15
Views
3,644

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. Thread: Find the two largest number

by vendettabf
Replies
15
Views
3,644

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