JavaBat Array Problem (larger value w/o loop)
W. Joe Smith
posted 8 years ago
I am working through the Javabat exercises and I encountered one that asking me to figure out if the first value in an array of 3 is larger than the last value in the array and set all the values in the array to the larger of the two values. The kicker is it is in a section that says it can be done without using a loop construct. Now I could (easily) handle this with a if loop, and the code would work, but I can't think of a way to do with without a loop. I'm not going to copy/paste the problem, and I don't want anyone to write the code for me (I'm trying to learn here, people!) but if anyone has a brilliant, crazy, or ridiculously simple path to point me down it would be greatly appreciated!
author and iconoclast