The prosecutor claimed that the accused defiled the girl by dipping his fingers into her private part.
Eranluwobo, who resides at Akowonjo area of Ikeja, however, pleaded not guilty to a charge of defilement.
The prosecutor, Insp Simeon Imhonwa, told the court that the accused committed the offence sometime in July in his apartment.
Imhonwa alleged that the accused lured the girl into his apartment with sweets and had carnal knowledge of her without her consent.
He claimed that the accused defiled the girl by dipping his fingers into her private part.
The prosecutor said the cry of the girl alerted a neighbour, who broke into the room, and caught the accused in the act.
“The case was reported at the police station and the accused was immediately arrested,” Imhonwa said.
He said that the offence contravened Section 137 of the Criminal Law of Lagos State, 2015 (Revised).
The News Agency of Nigeria (NAN) reports that Section 137 prescribes life imprisonment for child rape.
The Chief Magistrate, Mrs B.O Osunsanmi, granted the accused a bail in the sum of N500,000 with two sureties in like sum.
Osunsanmi adjourned the case till October 23 for mention.