Justin Bieber will attend anger management classes

Justin Bieber will attend anger management classes as part of a plea deal that was issued on Wednesday, in which the troubled Canadian singer pled no contest to a misdemeanour vandalism charge for throwing eggs at his neighbour’s home back in January.

As well as sentencing him to two years’ probation, California’s court ordered Justin, 20, to pay $80,900 in damages, serve five days of community service and complete an anger management program. He was not present in court for the arraignment.

CLICK ON PHOTOS TO ENLARGEJustin Bieber pleaded no contest to the misdemeanour vandalism charge

As well as sentencing him to two years’ probation, California’s court ordered Justin, 20, to pay $80,900 (£47,160) in damages, serve five days of community service and complete an anger management programme. He was not present in court for the arraignment.

“Justin is glad to get the matter resolved and behind him,” a spokesperson for the singer said in a statement. “He will continue to move forward focusing on his career and his music.”

Justin had been under investigation for the egg-throwing incident since the start of the year, when his neighbour in Calabasas alleged that he had caused around $35,000 in damage.

Justin Bieber following his arrest for DUI in January

Shortly afterwards, police raided the star’s home looking for evidence – one of Justin’s friends was arrested on drug possession charges as a result of that search.

Justin – who has since moved from Calabasas to Beverly Hills – has had his fair share of run-ins with the law this year.

He was charged with driving under the influence and driving without a valid licence in Miami, also in January – that trial is scheduled to begin later this month. Meanwhile, in Toronto he faces allegations that he assaulted a limousine driver in December.

HELLO! Canada magazine is available for your tablet and smartphone. Get HELLO! Canada, PEOPLE, Vanity Fair and over 100 more of the world’s best magazines for one low monthly price at Texture by Next Issue. CLICK HERE to sign up for a free trial.