Hi @Sam Ahlawat , have you gotten the chance to look at the samples we offer for Java? There's a lot of good information there that should help you. Please let me know if you have any questions!
If this answer helped you please mark it as "Verified" so other users may reference it.
Thank you,
James