It happened after 12:00 a.m. Saturday at a home on Steelmanville Road in the Bargaintown section of Egg Harbor Township.
Police say three 22-year-old men from Egg Harbor were in the garage of the home when four masked men confronted them. Two were brandishing guns.
The victims told police the men hit them with metal pipes and other objects, robbed them, then fled on foot. Two of the victims were treated at Shore Medical Center for their injuries.
Investigators later tracked down four suspects at a home on Jeffers Landing Road in the Scullville section of the township and arrested them.
Charged with robbery, burglary, conspiracy and weapons offenses are: Troy Dougherty,19; Matthew Franks, 19; Edgar Montiel, 20; and Dominic Tarsitano, 18, all of Egg Harbor Township.
All are being held at the Atlantic County Justice Facility.
Dougherty's bail was set at $200,000 Cash, Frank's at $150,000 cash, Montiel's at $100,000 cash and Tarsitano's at $100,000 cash.