By MAURA GRUNLUND and EDDIE D'ANNA

STATEN ISLAND, N.Y. -- A 23-year-old man has been arrested in the gunpoint robbery of a 16-year-old girl waiting for a train in Great Kills.

The suspect, Victor Vargas, 23, who has a lengthy criminal history, was not a stranger to the victim, according to a Staten Island police official.

"This was not a random robbery," the official said. "This was not someone lying in wait and waiting for someone to walk by."

The suspect and the victim knew each other from the neighborhood and had hung out in the past, the official said.

"She was able to tell us who he was," the official said.

Vargas, of Barlow Avenue in Great Kills, was arrested on Monday morning at the 120 Precinct stationhouse in St. George, said a spokesman for the NYPD's Deputy Commissioner of Public Information.

Vargas has been charged by police with robbery in the stick-up in broad daylight at about 9:45 a.m. on Thursday near the Great Kills train station.

The victim told police that she was walking around waiting for the train that she intended to take from the Great Kills station when she was approached from behind and struck in the head in the vicinity of Baltimore Street and Rhett Avenue.

She turned around and the suspect, who brandished a firearm, asked, "What's in your bag?"

The teen surrendered her black and gray Coach wallet that contained her school ID, about $7 in cash, her student MetroCard, a ring valued at around $200 and a prayer card, police said.

A pedestrian walkway begins at Baltimore Street and Rhett Avenue and leads to an entrance for the Great Kills station.

Vargas has 29 prior arrests, 10 of them sealed, said a source with knowledge of the investigation.

Police believe that they have solved four recent crimes with the arrest of Vargas on Monday.

Vargas allegedly shop-lifted in an incident where about $1,400 in over-the-counter cold medication was stolen from a CVS at 778 Manor Rd. at about 10:18 a.m. on Dec. 2, 2016, the source said. The suspect faces charges that include grand larceny.

Police picked up Vargas on Monday on Stroud Avenue in Eltingville while officers were responding to calls that Vargas had violated an order of protection and keyed a car of a 24-year-old former girlfriend, the source said. All four doors of the car and the hood allegedly were scratched on Sunday, the source said. Charges faced by Vargas include criminal mischief.