title: Function declaration must have a name
body: <p>I have strings of codes in my <code>Main.Activity.kt</code> of Android studio but I keep getting the error message "Function declaration must have a name: Unresolved reference"</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  /**
   * This method is called when the order button is clicked.
   */
  public void submitOrder(View view) {
      display(2);
      displayPrice(2*5);
  }
  
  /**
   * This method displays the given quantity value on the screen.
   */
  private void display(int number) {
      TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);
      quantityTextView.setText("" + number);
  }
  }
  </code></pre>