title: Getting error when adding another function
body: <p>When I am running Price method I am getting an IllegealStateException but when I just run it with display method I don't get any error</p>
  <pre><code>public void submitOrder(View view) {
      int number = 2;
      display(number);
     Price(2* 5);
  }
  
  /**
   * This method displays the given quantity value on the screen.
   */
  @SuppressLint(&quot;SetTextI18n&quot;)
  private void display(int number) {
      TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);
      quantityTextView.setText(&quot;&quot; + number);
  }
  
  /**
   * This method displays the given price on the screen.
   */
  private void Price(int number) {
      TextView priceEditText = (TextView) findViewById(R.id.price_text_view);
      priceEditText.setText(NumberFormat.getCurrencyInstance().format(number));
  }
  </code></pre>