A man accused of stabbing a 14-year-old boy is in court for a different stabbing case.