corrected post on writing compact java