hai all thank you i have solved this myself..thanks for the replies
this.final_result = new ArrayList();
livechat.MathService mymath = new livechat.MathService();
object[] temp = mymath.show_initial_msgs();
foreach (object o in temp)
{
final_result.Add(o.ToString());
}
if (final_result.Count == 0)
{
}
else
{
for (int i = 0; i < final_result.Count; i++)
{
this.txtareamsg.Value = final_result[i].ToString() + Environment.NewLine;
}
}