display multiplication table in TextView
<p>I am trying to generate a multiplication table,where the 1st EditText takes the actual number while 2nd EditText takes the actual range of multiplication table. When I run the project , the result is only number <strong>* range..</strong>
can anyone help me in the loop or code below mentioned Or,any alternatives to display the table in <code>GridLayout</code> or <code>TableLayout</code> rather than <code>TextView</code>.</p>

<pre><code>protected void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_multiplication_table);
    number = (EditText)findViewById(R.id.numberTable);
    range = (EditText)findViewById(R.id.numberRange);
    click = (Button)findViewById(R.id.click);
    result = (TextView)findViewById(R.id.display);
    final String x = range.getText().toString();
    click.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View view) {
          int   a = Integer.parseInt(number.getText().toString());
          int   b = Integer.parseInt(range.getText().toString());



             for(int i = 1 ; i &lt;= 10; i++)
            {
                for(int j = 1 ; j &lt;= 10; j++)
                {
                    int res = a * b;
                            result. setText(a +" * " + b + " = " + res);

                }





            }
            return;
        }
    });

}
}
</code></pre>