The police charged Sunday, who resides at Magbon in Badagry, Lagos State, with defilement.
Magistrate Ejiro Kubeinje did not take Sunday's plea.
Kubeinje, however, directed the police to send the case file to the state Director of Public Prosecutions (DPP) for advice.
She adjourned the case until Aug. 11 for the DPP advice.
The prosecution counsel, ASP Bisi Ogunleye, told the court that Sunday committed the offence on June 11 at his residence.
Ogunleye said that the defendant had sexual intercourse with the teenager.
The offemce, he said, contravened the provisions of Sections 137 of the Criminal Law of Lagos State, 2015.
The News Agency of Nigeria reports that the section prescribes life imprisonment for defilement.