java solutions