Dougie Hamilton scored twice and the New Jersey Devils beat the San Jose Sharks 3-1 on Friday night for their seventh straight win.