title: Java to kotlin conversion specific to my code
body: <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Button b1 =findViewById(R.id.B1);
          b1.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent i = new Intent(MainActivity.this,Second.class);
                  startActivity(i);
  
              }
          });
      } 
  </code></pre>
  
  <p>my question is how to convert this to kotlin and I am new to kotlin</p>