Comparing MatchCharAt to StringBuilder?
<pre><code>public class Driver {

public static void main(String[] args) {


    int length=0;
    int MaxNumber=100;
    StringBuilder password = new StringBuilder();



    do {
        if (PasswordGenerator.matchLength (length))
            System.out.println("The length of the character is " + length);
        length++;
    } while (length &lt; MaxNumber);

    do {
        if (PasswordGenerator.matchCharAt (password))
            System.out.println("The password is " + password);
    } while (  );



}
}
</code></pre>

<p>My code is supposed to find the length of a given password, which it already does. And then the next step is supposed to determine the password, by appending each individual character with Stringbuilder.  </p>

<p>But anyways I keep getting an error that </p>

<blockquote>
  <p>method matchCharAt in class PasswordGenerator cannot be applied to given types:
  Required: char, int
  Found: StringBuilder
  Reason: Actual and formal argument lists differ in length*</p>
</blockquote>

<p>Any help would be awesome!</p>

<p>P.S. Password Generator is a "Made up" class, if you need documentation I can post it.</p>
