WEBSTER � A 21-year-old cable installer was arrested for allegedly masturbating in public Saturday afternoon, police said.

Alex Walsh of 161 Dennison Cross Road, Southbridge, allegedly parked his truck on Emerald Avenue, a neighborhood of mostly multifamily homes, police said.

Mr. Walsh pleaded not guilty Monday in Dudley District Court to open and gross lewdness, indecent exposure and disorderly conduct.

He was released on personal recognizance. Judge Timothy M. Bibaud ordered Mr. Walsh to return on May. 6.

About 2:15 p.m. Saturday, officers got a complaint about the incident in front of 23 Emerald Ave., the police report said.

A witness said he saw a man masturbating while parked in a Tri Wire truck, police said.

The witness said he was watching television when he heard a car door slam outside his apartment.

When he got up to look, he saw the driver take out his cellphone and masturbate. The witness told his father, who also observed the incident, police said.

Police noted Mr. Walsh's truck did not have window tint, nor did he do anything to hide the act, the report said. Police said Mr. Walsh told them he had been "struck with the urge" to masturbate while between jobs.