title: how to put date condition in android after if
body: <p>I made an application and I put DAY_OF_MONTH condition after (if) like this</p>
  
  <pre><code>if (cal.get(Calendar.DAY_OF_MONTH) == 9) {
          Intent intent1 = new Intent(MainActivity.this, TextActivity.class);
          intent1.putExtra("key", getResources().getString(R.string.s_monday_txt));
          startActivity(intent1);
          finish();
      } else if (cal.get(Calendar.DAY_OF_MONTH) == 10) {
          Intent intent2 = new Intent(MainActivity.this, TextActivity.class);
          intent2.putExtra("key", getResources().getString(R.string.s_tuesday_txt));
          startActivity(intent2);
          finish();
      }
  </code></pre>
  
  <p>and in another place I put MONTH condition after (if) like this</p>
  
  <pre><code>    if (cal.get(Calendar.MONTH) == Calendar.SEPTEMBER) {
          Intent intent1 = new Intent(MainActivity.this, TextActivity.class);
          intent1.putExtra("key", getResources().getString(R.string.s_september_txt));
          startActivity(intent1);
          finish();
      } else if (cal.get(Calendar.MONTH) == Calendar.AUGUST) {
          Intent intent2 = new Intent(MainActivity.this, TextActivity.class);
          intent2.putExtra("key", getResources().getString(R.string.s_august_txt));
          startActivity(intent2);
          finish();
      }
  </code></pre>
  
  <p>this works fine for me but the problem how can I check the two condition in the same time like this</p>
  
  <pre><code>if (cal.get(Calendar.MONTH) == Calendar.SEPTEMBER) + (cal.get(Calendar.DAY_OF_MONTH) == 9) {
          Intent intent1 = new Intent(MainActivity.this, TextActivity.class);
          intent1.putExtra("key", getResources().getString(R.string.s_september_txt));
          startActivity(intent1);
          finish();
      } else if (cal.get(Calendar.MONTH) == Calendar.AUGUST)  + (cal.get(Calendar.DAY_OF_MONTH) == 10) {
          Intent intent2 = new Intent(MainActivity.this, TextActivity.class);
          intent2.putExtra("key", getResources().getString(R.string.s_august_txt));
          startActivity(intent2);
          finish();
      }
  </code></pre>
  
  <p>I tried (+) , (and), (||), (,) all of this don't work
  any help ???</p>