Adding java solutions