If he can pay for a private attorney, that is the best. If his case is a felony, he must also go to court even though he has an attorney. If his case is a misdemeanor, the attorney can go for him and your friend doesn't have to go to court. Chances are he does not have to go to jail, perhaps some fine and community service.