When Deandre Somerville overslept and missed jury duty in August, Judge John S. Kastrenakes was not impressed. He held Mr. Somerville in contempt, scolded him in court and slapped him with a 10-day jail sentence and one year of probation — Mr. Somerville’s first criminal offense.

On Friday, Judge Kastrenakes, of the 15th Judicial Circuit of Florida in West Palm Beach, reduced the probation to three months and community service from 150 hours to 30 hours after an appeal from Mr. Somerville’s lawyer.

And now, the judge has reversed himself entirely.

One day after Mr. Somerville appeared at a hearing on Friday and read a letter apologizing to the court (which Judge Kastrenakes had ordered him to do), the judge rescinded his finding of criminal contempt and declared Mr. Somerville “totally rehabilitated.”

“I firmly believe that Deandre Somerville is the type of person who can achieve anything he wants in this world,” Judge Kastrenakes wrote in an order dated Saturday. “He is a thoughtful and respectful young man. He cares deeply about his family.”