Announcing the sale of pot out of a dorm room window is probably not a good idea when two police officers are within hearing range.

A pair of former Northeastern University freshmen are facing drug and other charges after prosecutors said one of them leaned out his dorm window on Sunday and loudly told a woman in the dorm opposite his that he and his roommate were selling pot.

Two plain clothes Boston officers in the building overheard the conversation, made their way up to a second floor dorm room where they arrested Michael Emery, 18, of Haverhill and Matthew Ferrante, 18, of North Andover after finding about four ounces of marijuana, drug paraphernalia, including a scale, and several bottles of alcohol in the room, the Suffolk district attorney's office said.

"If you're looking for weed, my roommate Ferrante has some for sale," Emery allegedly said out the window, according to the district attorney's office.

The students were arraigned in Roxbury District Court on Tuesday on charges of possession of a class D substance with intent to distribute in a school zone, possession of alcohol by a minor, and conspiracy to violate the state's drug laws. The intent to distribute charge carries a maximum of two years in jail.

They pleaded not guilty, were both released on personal recognizance and are due back in court on Oct. 24.

Attorneys for the men did not immediately return calls for comment.

"They are no longer students here," university spokeswoman Laura Shea said.