title: Printing counters in nested loops
body: <p>I'm trying to concatenate counters in nested loops, with the inner loop having a smaller maximum, such that my output should read:</p>
  
  <pre><code>1.1
  1.2
  1.3
  1.4
  2.1
  2.2
  2.3
  2.4....
  </code></pre>
  
  <p>Where the inner loop is completing it's cycles and then restarting when the parent loop goes again.</p>
  
  <p>Right now I have </p>
  
  <pre><code>import java.io.BufferedWriter;
  import java.io.FileWriter;
  import java.io.IOException;
  import java.io.PrintWriter;
  public class ForLoop
  {
  
      public static void main(String[] args) throws Exception{
          try {
              PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("/Users/evanlivingston/1.txt", true)));
  
          for ( int counter = 0; counter &lt;= 15; counter++ )
              out.println( counter );
              for ( int counter2 = 0; counter2 &lt;=4; counter2++)
                  out.print( counter2 );
          out.close();
          } catch (IOException e) {
          }
      }
  }
  </code></pre>
  
  <p>It seems like I must construct a variable made of variables (the counters) and then print that.</p>