Consult a lawyer. Depending upon your age and record, you should try to find out if you might qualify for a diversion program or deferred sentence.