java solutions added