Trial-and-error Java CL