title: Calling a void (View view) from another void in the same class
body: <p>When i start my application, i want it to immediately load another void. How can i do that?</p>
  
  <p>My code starts with:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.assistent);
          }
  </code></pre>
  
  <p>I want it to call this void:</p>
  
  <pre><code>private void load(View view) {
  
  //i want the code in this void to load when the activity starts.
  
  }
  </code></pre>
  
  <p>How can i do that?</p>
  
  <p>Something like:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.assistent);
  
          this.load();
          }
  </code></pre>
  
  <p>But when i try that, it just gives me an error message:
  <a href="https://i.stack.imgur.com/O94Pf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O94Pf.png" alt="Screenshot of the error message"></a></p>