title: how to add looping from putextra?
body: <p>i want create 49 case, but it to much coding if i use case 0 - 49.<br>
  i need simple coding using loop for my switch case.</p>
  
  <p>this my source code</p>
  
  <pre><code>Intent intent = getIntent();
      int topicNumber = intent.getIntExtra(MainActivity.TOPIC_NUMBER, 0);
          switch (topicNumber) {
              case 0:
                  profil_image.setImageResource(R.drawable.bg);
                  break;
          }
      }
  </code></pre>