Back in the day, young guys who committed minor felonies would be offered a choice of jail or the military. It gave a lot of guys a second chance and got them away from bad environments.
Now, I get that the military today wants skills and doesn't want to deal with society's discipline problems, but I know some old guys that were grateful for that second chance to clean up and grow up with some structure and discipline.