Delete java solution