Brooklyn Judge Craig Walker told the 17-year-old charged in a vicious subway beating to take the right path -- before locking him up.