HTTP 'PUT' request help (Java)

I am having trouble figuring out how to execute HTTP ‘PUT’ requests. As I read about HTTP requests online, I see that ‘setRequestProperty’ may be how I can set different fields that need to be updated but I am unsure as to how they actually work. Is there some type of documentation online that I can read up on to get more information about how to utilize ‘PUT’ requests? If anyone could give me some guidance here that would be great as well. Also I am coding in Java.

Thanks in advance!