I have 7 checkboxes which shows week days,Now what i want to do is to store the text of each check box in single string on basis of selected checkbox. What i am doing is by using if else condition but it is bit long.
Any help how i can minimize the code.
The code goes like this for every condition.
if(mon.isChecked()&& tue.isChecked()){
MON=mon.getText().toString();
TUE=tue.getText().toString();
text=MON+","+TUE;
}