J2ME中,如果要在最后位置添加一個字符,實現的方法?
//在最后位置添加一個字符
String str="A";
int size=tbMain.size();
if(size>0){
tbMain.insert(str,size-1)
}
//在最后位置添加一個字符
String str="A";
tbMain.setString(tbMain.getString()+str());
posted @ 2008-10-08 16:32 kerui178 閱讀(72) | 評論 (1) | 編輯 收藏