title: find smallest value in linked list
body: <p>having trouble figuring this out, every time i run my code the program goes on forever, everything else in the linked list works perfectly well. including the delete.</p>
  
  <pre><code>public Node smallestValue() {
      Node current = firstL;
      int min = current.data;
  
      if (!isEmpty()) {
          while (current != null) {
              if (min &lt; current.data) {
                  min = current.data;
                  current = current.next;
              }
          }
      } else {
          System.out.println("empty list");
      }
  
      System.out.println();
      System.out.println(min);
  
      return current;
  }
  </code></pre>