When Nets general manager Billy King spoke earlier this week about Deron Williams’ struggles this season, he referenced the injuries and struggles Carmelo Anthony endured last year with the Knicks.

Though King didn’t mean it in this context, there is another parallel to the Knicks from last year without Anthony that has appeared during the two games Williams has missed while resting his ailing ankles: Williams’ teammates have stepped up in his absence.

The Nets (31-22) got huge contributions from the roster last night on their way to a 119-108 win over the Nuggets in front of a crowd of 17,251 inside Barclays Center, sending the Nets into the All-Star break on a two-game winning streak.

“When you’ve got a key guy out, it motivates guys to step up and play a little harder,” said Joe Johnson, who finished with a game-high 26 points on 10-for-19 shooting. “Guys who haven’t played that much tend to come in and play big minutes and be successful.”

After the Nets got blown out of Barclays Center in the second half of Sunday’s lopsided loss to the Spurs and hearing the news that Williams would miss the final two games before the break after receiving platelet rich plasma treatment on both ankles, it seemed certain the Nets would enter it on a down note.

Instead, they recovered from a late deficit to pull out an overtime win Monday in Indiana, and then used a blazing-hot night shooting the ball to surge past the Nuggets and give the Nets two of their more impressive victories of the entire season.

“We knew we needed these two games,” said Gerald Wallace, who finished with eight points, nine rebounds, five assists and three blocked shots. “The Washington game we kind of laid down and they kicked our butts, and San Antonio we didn’t take advantage of what we should have and gave two games away.