Using Int Value In Selection Args Argument Of Sqlite For Android
Is this the correct way to convert an int into a string before use with Integer.toString()? Is there another way to do this where conversion is not required? Example: int value
Solution 1:
Yes, you can use the following ways to convert int
to String
.
int i=10;
String[] str = new String[]{String.valueOf(i)};
String[] str1 = new String[]{Integer.toString(i)};
Post a Comment for "Using Int Value In Selection Args Argument Of Sqlite For Android"