NEWARK, N.J. Carmelo Anthony scored 21 of his 33 points in the first quarter, and the New York Knicks beat the Nets 104-95 on Wednesday night in their last trip to New Jersey.