added java spiral solution