A man has appeared in court