more java solutions