0

Hi there,
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?
cheers

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by Spikky
0

Nevermind I found a way to do it. Will proably be back with more problems shortly though :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.