Stuck on Java program (java.io.*;)?
<p>The purpose of my program is to ask what the temperature(F) is and what the weather condition outside is like. </p>

<p>The weather condition can be either sunny(1), raining(2), cloudy(3) or snowing(4.) The numbers 1-4 will be used to clarify what the weather condition is (I'm not sure how to do it any other way...) </p>

<p>Then, depending on the combination of <code>temp</code> and <code>weatherCondition</code> I want to be able to display 3 garments out of 10 choices, based on the combo of <code>temp</code> and <code>weatherCondition</code>.</p>

<p>I'm still learning so I apologize if my question or problem seems mundane... </p>

<p>At the moment when a user enters the <code>temp</code> and <code>weatherCondition</code>, a response is given depending on the combo of the two inputs (ex. hot-sunny, freezing-snowing). </p>

<p>Instead, I would like to create one or more txt files and have each one named something like <em>hotSunny.txt</em> for example. Inside these txt files I've listed 10 types of garments. I ultimately want the program to recognize which combo matches its appropriate txt file and then randomly display 3 of the 10.</p>

<p><strong>What I've got so far...</strong></p>

<pre><code>   public static void main(String[] args)
   {
      double temperature;    
      int weatherCondition;  
      String input;          


      input = JOptionPane.showInputDialog("What is " +
                                "the current temperature?");
      temperature = Double.parseDouble(input);


      input = JOptionPane.showInputDialog("Sweet I now know the temperature! " +
             "Now please take a look out the nearest window is it Sunny , Rainy ," +
             " Cloudy or Snowy? " +
             "(1 = Sunny) (2 = Raining) " +
             "(3 = Cloudy) (4 = Snowing)");


      weatherCondition = Integer.parseInt(input);


      if (temperature &lt;= 32){
          if (weatherCondition == 4){
              freezingSnowing();
          } else if (weatherCondition == 3){
              freezingCloudy();
          } else if (weatherCondition == 2){
              freezingRain();
          } else {
              freezingSunny();
          }
    }..........
      else if ((temperature &gt;= 33) &amp;&amp; (temperature &lt;= 50)) {

      else if ((temperature &gt;= 51) &amp;&amp; (temperature &lt;= 75)) {

      else if ((temperature &gt;= 76) &amp;&amp; (temperature &lt;= 140)) {

public static void freezingSnowing()       
{
   JOptionPane.showMessageDialog(null, "It's is snowing! I recommend that you dress very warm" +
                         "and wear a large coat that is preferably water proof.");
} 
</code></pre>
