title: using getText to get an Integer
body: <p>I am working on a program with in interface that uses textAreas in order to recieve user input and at one point when I use the getText() function it tells me that the variable that I am trying to declare with it, an integer, must be a string. Would there be any other way to change this or would there be another function that I would use to call in integer from a textArea?</p>
  
  <p>Edit:</p>
  
  <p>Sorry, I did leave out some code for an example.</p>
  
  <pre><code>public void SetStock(javax.swing.JTextArea textStock)
  {
      Integer _textStock = textStock.getText();
  }
  public  Integer getTextStock()
  {
      return _textStock;
  }
  </code></pre>
  
  <p>This is the setter/getter that I am trying to use in order to use it within my main class. </p>