A former Fairfield University student was found not guilty Thursday of raping a female student in her dormitory room last year.

The six-person Superior Court jury deliberated a day and a half before finding 19-year-old Joshua Delvecchio, of Madison, not guilty of first-degree sexual assault and first-degree unlawful restraint.

“My client has learned a very valuable lesson that he will carry for the rest of his life,” said Delvecchio’s lawyer, William Dow, as he and his client left the courtroom at Superior Court in Bridgeport. Dow said Delvecchio is now attending another university where he expects to graduate with a degree in accounting.

“This has been a sad commentary on life on college campuses,” Dow added.

The 19-year-old woman claimed that last Oct. 18 she initially agreed to have sex with Delvecchio, but at some point while they were involved decided to call it off.

Delvecchio claimed the sex was consensual.

However, police said the following day Delvecchio bragged to friends in texts that he had done “the nasty” with a freshman girl.