You can get the sample Java code for most of the API calls in the download section of the developer community portal.
You can use the below link to go to downloads. You will find the sample code for Java, C#, JS in the section "code examples". Java code is in the head "World-Check One API Java v1.2 Collection Tool" under code examples.
https://developers.refinitiv.com/customer-and-third-party-screening/world-check-one-api/downloads
Thanks.