Nicholas Skourtis pleaded no contest to two counts of brandishing a weapon in San Mateo County Superior Court on Monday in exchange for 90 days in jail, the minimum sentence for such charges.
He had previously been charged with one count of assault with a firearm and one count of assault with a knife, also misdemeanors, in connection with the two incidents.
Last September, Skourtis was out with friends at a burger joint in Daly City when one of his friends dropped his cell phone. Skourtis picked it up and refused to give it back, according to prosecutors.
Prosecutors said his friend tried to get the phone back, but Skourtis pulled out his gun and pointed it at his friend's stomach.
The incident went unreported at the time, but in February Skourtis was at a Starbucks in Burlingame with some friends and started talking to someone about "the best way you could harm someone," Chief Deputy District Attorney Steve Wagstaffe said.
Wagstaffe said Skourtis then demonstrated by putting a knife to the person's throat.
No one was hurt in either case, but after the Starbucks incident someone reported Skourtis' behavior to police.
The district attorney's office then investigated the reports, filed the misdemeanor charges against Skourtis and ordered him to appear in court. He pleaded not guilty on March 30, and remains out of custody on his own recognizance.
He is scheduled to be sentenced at 9 a.m. Aug. 10.