<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      <br>
      On 12/07/2016 09:47 PM, <br>
    </div>
    <blockquote
      cite="mid:6c8810d1fbeb47f0b435ea9b3881787c@spiderman.MercerU.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:14px">
        <div id="yui_3_16_0_ym19_1_1481164842262_4861">Hey Dr. Pounds,</div>
        <div id="yui_3_16_0_ym19_1_1481164842262_4861"><br>
        </div>
        <div id="yui_3_16_0_ym19_1_1481164842262_4861" dir="ltr">In
          order to use the selection sort in our program, do we need to
          copy the SelectionSorter.java class into our code? I'm
          confused on how to use selection sort.</div>
        <div id="yui_3_16_0_ym19_1_1481164842262_4861" dir="ltr"><br>
        </div>
      </div>
    </blockquote>
    <br>
    Let's make this REALLY simple.  Since you already wrote a method in
    program four which essentially did the bubble sort -- which we said
    in class today should run at roughly the same order as the Selection
    sort -- then you can just use the same sorting method you used in
    program four.  You will have to modify it to work with ArrayLists,
    but that should not be terribly difficult (although it will require
    some thinking about how ArrayLists operate).<br>
    <br>
    <blockquote
      cite="mid:6c8810d1fbeb47f0b435ea9b3881787c@spiderman.MercerU.local"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:14px">
        <div id="yui_3_16_0_ym19_1_1481164842262_4861" dir="ltr">
        </div>
        <div id="yui_3_16_0_ym19_1_1481164842262_4861" dir="ltr">Also
          are we supposed to be sorting based on the 25 hottest and
          coldest average temperatures or the hottest and coldest
          recorded daily temperatures every recorded?</div>
        <div id="yui_3_16_0_ym19_1_1481164842262_4861" dir="ltr"><br>
        </div>
      </div>
    </blockquote>
    <br>
    You are sorting the ArrayList based on the hottest and coldest daily
    temperatures.   Remember, each temperature in the daily file is the
    average temperature for that particular station on that particular
    day.   Sorting an array of objects this big with either the
    selection sort of the bubble sort will take some time.<br>
    <br>
    <br>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds_aj@mercer.edu">pounds_aj@mercer.edu</a>)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
<a class="moz-txt-link-freetext" href="http://faculty.mercer.edu/pounds_aj">http://faculty.mercer.edu/pounds_aj</a>
</pre>
  </body>
</html>