Crime is more prevalent in other areas of the city than downtown, he said.
"The best way to drive out the wrong kind of people is to drive in the right kind," Anderson said.
The people sitting in City Council chambers are the right kind, who are trying to change Martinsburg for the better, he said.
Detective Sgt. George Swartwood said he and other officers are trying to eradicate the prostitution problem and planned to try to arrest one known offender before the night was over.
A little while later, Swartwood answered a cell phone call and then left, indicating to audience members that an arrest had been made.
The prostitutes are addicted to crack cocaine and heroin and sell themselves only to enable them to buy their next fix, Swartwood said.
He and Anderson both urged audience members to call the police department's dispatcher if they see anything suspicious. Stay on the line and describe the people involved because a patrol car might be right around the corner, they said.
Audience members asked a number of questions. Bruce Monforte, with the Market House Grill, said he likes that the city sometimes assigns an officer to "walk the beat" downtown. He asked if that will be done consistently.
Whenever possible, someone will perform foot patrol, Anderson said, adding that he hopes to one day have a full-time officer assigned to handle the downtown area.
Anderson, who's been with the police department for 27 years, said the downtown area has improved over the decades. When he worked patrol years ago there was a bar in every block or two. Fights broke out and sometimes windows were broken, he said.
"We don't have that now," Anderson said. "We've got the right kind of businesses downtown I think."
Officers took notes on where groups of people have been gathering and Anderson encouraged people to use his open-door policy.
After the meeting, he said he meets individually with business owners when asked and tries to hold a group meeting every couple of years or so.