Having trouble looping arguments with multiples of three. (newb)
<p>The goal of this program is to run arguments such as "K6V3  20.2 17.4" and use the Weather class to calculate the windchill based on the last 2 numeric arguments and use the first argument as the shorthand name for the area. Im running into a problem when the program is given args in multiples of three, such as "K6V3  20.2 17.4 KCHO  40.0 10.0" Im not sure how to get the loop to restart after the third arg.  My program will take the first three args and display the correct information, but it will just repeat that information for the second three args. Here is my code so far, HELP!?!?!</p>

<pre><code>public class ChillMapper {
    public static void main(String args[]) {
        double ICAO;
        double t;
        double v;
        double windChill;

        for (int i = 0; i &lt; args.length / 3; i++) {
            if (args.length % 3 == 0) {
                ICAO = Text.toDouble(args[0]);
                t = Text.toDouble(args[1]);
                v = Text.toDouble(args[2]);
                windChill = Weather.windChillNA(t, v);
                Map.setTemperature(args[i], windChill);
            }
        }
    }
}
</code></pre>
