This week's book giveaways are in the Java EE and JavaScript forums. We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line! See this thread and this one for details.

I am having many sets of values(X,Y Coordinate values)

10, 20 10,15 200,130 10,30 30,30

I need to compare all(sets) coordinate values and find the value which is smallest. In this case Answer is 10,15. Can anybody suggest an efficient logic