Use Integer.parseInt(). If your CharSequence is not a String, then you need to convert it first using toString().
int number = Integer.parseInt(cs.toString());
Use Integer.parseInt(). If your CharSequence is not a String, then you need to convert it first using toString().
int number = Integer.parseInt(cs.toString());