title: TwitterFactory().getInstance() get no method suitable
body: <p>i am trying to build a simple application that related to twitter. i have read so many tutorial about it, but i got an error in a very early step of code.</p>
  
  <pre><code>Twitter twitter = new TwitterFactory().getInstance(txtUsername.getText(),arrayToString(txtPassword.getPassword()));
  </code></pre>
  
  <p>where the  txtUsername is an edit text and txtPassword is a passwordField.
  arrayToString method is this </p>
  
  <pre><code> private String arrayToString(char[] arr)
  {
      StringBuffer result = new StringBuffer();
      for(int i=0;i&lt;arr.length;i++)
      {
          result.append(arr[i]);
      }
      return result.toString();
  }
  </code></pre>
  
  <p>and here is the error </p>
  
  <pre><code>no suitable method found for getInstance(java.lang.String,java.lang.String)
  method twitter4j.TwitterFactory.getInstance(twitter4j.auth.Authorization) is not applicable
    (actual and formal argument lists differ in length)
  method twitter4j.TwitterFactory.getInstance(twitter4j.auth.AccessToken) is not applicable
    (actual and formal argument lists differ in length)
  method twitter4j.TwitterFactory.getInstance() is not applicable
  </code></pre>
  
  <h2>      (actual and formal argument lists differ in length)</h2>
  
  <p>Thank you so much, any help will be very great.. </p>