Min Heap Java Implementation
I have one suggestion for your code.


Create a method to check if the current size is invalid, and reuse it (MinHeap#peek and MinHeap#poll methods).


private void assertCurrentSizeIsValid() {
   if (size == 0) {
      throw new IllegalStateException();
   }
}