【发布时间】:2013-07-05 05:56:05
【问题描述】:
这是在使用 Integer.toString() 之前将 int 转换为字符串的正确方法吗?还有其他不需要转换的方法吗?
例子:
int value = 10;
Cursor cursor = database.query(
"TABLE_X",
new String[] { "COLUMN_A", "COLUMN_B" },
"COLUMN_C = ?",
new String[] { Integer.toString(value) },
null,
null,
null);
【问题讨论】: