我的数据库用括号返回我的值我如何删除括号表单字符串并在我的数组字符串中保存没有括号值?help me pelase help me value is proper getting i just want to remove the bracket around my string and save in ArrayList Meal_groupid
static ArrayList<String> Meal_groupid = new ArrayList<String>();
Meal_groupid.add(mCursor2.getString(mCursor2.getColumnIndex("meal_group_id")));
value is = "[AT]";
i did like this
String formatedString = "[ABC]"
.replace("[", "") //remove the right bracket
.replace("]", "");
Log.i("Formating Stirng",""+formatedString);
Meal_groupid.add(mCursor2.getString(mCursor2.getColumnIndex("meal_group_id")).replace("[",
"").replace("]", ""));
Log.i("MEalGroup ID",""+Meal_groupid);
in logcat Formating Stirng ABC
MEalGroup ID