title: Duplicate case in Switch
body: <pre><code> protected void onActivityResult(int requestCode, int resultCode, Intent data)
      {
          switch(requestCode)
          {
          case BOOK_SELECT: 
              if (resultCode == RESULT_OK)
              {
                  String name = data.getStringExtra("SelectedBook");
                  Toast.makeText(this, "You have chosen the book: " + " " + name, Toast.LENGTH_LONG).show();
                  break;
              }
          case PEN_SELECT:
              if (resultCode == RESULT_OK)
              {
                  String name = data.getStringExtra("SelectedPen");
                  Toast.makeText(this, "You have chosen the pen: " + " " + name, Toast.LENGTH_LONG).show();
                  break;
              }
          }
  
      }  
  </code></pre>
  
  <p>here both the case are different I can not get it why it is showing </p>