Hi, @atiqah thanks for reaching out. While I do not have a documented Java example, I can confirm you can use the v3 Contact endpoints to get a Contact by ID (email address for your use case).
Here’s what the documentation states:
“The idProperty query parameter doesn’t appear on the Endpoints tab due to technical limitations, but it can be used for contacts exclusively with email. To use an email address as the unique identifier, set the idProperty as email and enter the email address in place of the contact ID. This should be set as a query parameter rather than added to the request body.”