A man who pleaded guilty to stabbing another man in Atlantic City almost three years ago will spend 15 years in prison.