Military service should be a sentencing option for some crimes such as carrying knives, it would keep them out of prison, plus they might learn something worthwhile.
Or maybe a bit like speeding, where you get the option of an education course, with no points and no record, maybe minor crimes...