title: Adding Sentences into a heap
body: <p>I'm currently working on a min heap that sorts the number of F's in a sentence from least amount of Fs to the most amount of Fs so for example, if the user enters 
  <br>FUN
  <br>Fluffy
  <br>Fife
  <br>Five Dollar Foot Long For Five Dollars
  <br>FfffFFffuuu!
  <br>Farmer Fred Fiddles for Food
  <br>After Friday fear the final. Be afraid friend.
  <br>
  <br>It would sort it to:
  <br>FUN
  <br>Fife
  <br>Fluffy
  <br>Five Dollar Foot Long For Five Dollars
  <br>Farmer Fred Fiddles for Food
  <br>After Friday fear the final.  Be afraid friend.
  <br>FfffFFffuuu! 
  <br>
  <br> My question is, how can I transform the below code structure into letting the user enter the sentence themselves and having the F counter as the weight and not just adding these into the heap myself:</p>
  
  <pre><code>    heap.insert("FUN",1);
      heap.insert("Fluffy", 3);
      heap.insert("Fife", 2);
      heap.insert("Five Dollar Foot Long For Five Dollars", 4);
      heap.insert("FfffFFffuuu!", 8);
      heap.insert("Farmer Fred Fiddles for Food", 5);
      heap.insert("After Friday fear the final. Be afraid friend.", 6);
  </code></pre>