Java · 2D arrays, searching and sorting

Sorting with the library

Real programs sort with one library call, and knowing what that call does keeps you from searching an array it never touched.