Joshua Rowland wrote:I've not worked much with setting boolean values.
Joshua Rowland wrote:
Boolean found ← false
FOR(int i = 0; i <array.length; i++)
IF (array[i] == 17)
found ← true
I would prefer to consider the ?: operator:-
Junilu Lacar wrote:. . .. . .
Campbell Ritchie wrote:I would prefer to consider the ?: operator:-
Tim Holloway wrote:When I'm in a really snarfy mood, I may even drop the ending parenthesis down on a new line and column-align it with the "System.out".