shorter java programs