title: Android CheckBox to show multiple selection of text in one string
body: <p>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 <strong>if else condition</strong> but it is bit long. </p>
  
  <p>Any help how i can minimize the code. </p>
  
  <p>The code goes like this for every condition.</p>
  
  <pre><code> if(mon.isChecked()&amp;&amp; tue.isChecked()){
         MON=mon.getText().toString();
         TUE=tue.getText().toString();
         text=MON+","+TUE;
     }
  </code></pre>