title: Finding minimum value in a collection
body: <p>To find the minimum value in a collection of given types, what would I need to set "value" to in order to compare it to "min"? Value should be the next element in the collection and it should iterate until the collection is fully read through. </p>
  
  <pre><code>public &lt;T&gt; T min(Collection&lt;T&gt; c, Comparator&lt;T&gt; comp) {
  if ((c == null) || (comp == null)) {
       throw new IllegalArgumentException();
    }
  
    if (c.isEmpty() == true) {
       throw new NoSuchElementException();
    }
  
    Iterator itr = c.iterator(); 
    T min = (T)itr.next();
    T value = ;
    while (itr.hasNext()) {   
       if (comp.compare(min, value) &lt; 0) { 
          min = value;  
       }
    }
    return min;
  </code></pre>
  
  <p>}</p>