I have just started using java and have gained a bit of knowledge in it to start making small programs to run in cmd. I have recently been making one to determine which, of 4 objects, can reach a random point in a 1km square.
I have managed to figure out distances and times for the objects and point and am now stuck with trying to find an easy way to find the biggest of the 4 values and identify it.
I have seen that there is a method in the math class which can choose the biggest of 2 but I need it for 4. Anyone know of any easy ways in which I can do this?