它是一个贷款计算器。我有一个循环像另一种方法返回循环结果
public String loopresult(){
for (int i=1; i<10; i++)
return ((i) + "..........." + (i)*(i))
}
它说这个类必须返回字符串值。 我试过
valueOf.String((i) + "........" +(i)*(i)))
但没有工作。
我必须将其附加到txtArea中。
txtArea.append(loopresult())
我想内部txtArea是什么样的
2 ......... 4 3 ......... 9 等,所以这意味着这一行将有int和字符串两者。
你究竟想要追加到txtarea? 1 .... 1,2 .... 4等,? – vpram86
你可以发布堆栈跟踪吗? – Keppil
我想追加为2 .......... 4,3 ........... 9就像 – Shasi