Prospective search implemented in Java