Can't Able print the Array Elements in Table Format
<p>I am trying to print display the Array Elements In Table Format, but Can't Able to Get the Elements in Table Format, the output as Shown below</p>

<pre><code>Name     Address  Phone
Ramu     7/g      45464 Raju 1-6

As shown in the above, the name will come under the Name Column in the table, i wrote code as below          

TableROW t=new TableRow(this);
for(int i = 0; i&lt;Programlist.length;i++)
{

 if(i%3==0)
 {
    String Name=Programlist[i];// Getting the First Element Of the Array
    TextView P_Name=new TextView(this);
   P_Name.setText(Name);//Attaching to the textview 
   P_Name.setPadding(0, 2, 3, 5);
    t.addView(P_Name);//Adding to the Row
  }
  else if(i%3==1)
  {
String Address=Programlist[i]+"\n";// Getting Element 
    TextView Adrs=new TextView(this);// Attaching to the Textview 
    Adrs.setText(Address);
    Adrs.setPadding(2,5, 3, 2);
    t.addView(Adrs);
    Continue;

   }
   else
   {
    String phone=Programlist[i];
    TextView u_phone=new TextView(this);
    u_phone.setText(phone);
    u_phone.setPadding(2,5, 3, 2);// Space Between the columns Data 
    t.addView(u_phone);// Attaching to the Table Row
    continue;
   }

}
tableLayout.addView(tdata, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.MATCH_PARENT));
</code></pre>

<p>At last I Ma trying to attach into the table As Shown the Last Line of the code i was written. so please help me</p>
