我想在 TextView 中滚动内容,这是将结果设置为在 TextView 中显示的代码:
do
{
y = m;
f = x / y;
m = (y + f) / 2;
str[i] = x + "\t " + y + "\t " + f + "\t " + m + "\t";
i++;
a = i;
} while (Math.abs(y - m) >= 0.00001 * y);
str4 = numfmt1.format(y);
for (int j = 0; j < a; j++){
ris.append(str[j] + "\n");//TextView that contains the string str
}
ris.append("La radice è: " + str4)
}