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...
Type: Posts; User: vendettabf
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...
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...
i dont know... it does seem necessary now that you mention it. the problem still persists tho xD.
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...
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....