How to use it
/fill [location] [location] [block name]
Then it will fill the locations with the block you selected. I have used this command lots of time
Change the numbers for different dimensions, like 3x4x2 would be ~~3 ~~4 ~~2
Change the last word for a different material, so you could do dirt, or red concrete or any other block
(At least in bedrock, I think it is the same for Java)