title: Java code for a 10 times table
body: <p>I have this code, it makes a times table, but what I need it to do is just a 10 times table, meaning 10 x 1 is 10, 10 x 2 is 20, 10 x 3 is 30........etc up to 10 x 10 is 100, this is the code that I have, but I can't figure out how to edit it to this. Can anyone help me?</p>
  
  <pre><code>public class TimesTable {
  
    public static void main(String[] args) {
  
      int lowerValue = 1;
      int upperValue = 10;
  
      for (int headingIndex = lowerValue; headingIndex &lt;= upperValue; headingIndex++) {
        System.out.print("\t" + headingIndex);
      }
      System.out.print('\n');
  
      for (int inner = lowerValue; inner &lt;= upperValue; inner++) {
        System.out.print(inner);
        for (int outer = lowerValue; outer &lt;= upperValue; outer++) {
          System.out.print("\t"+(inner*outer));
        }
        System.out.print('\n');
      }
    }
  
  }
  </code></pre>