title: How to get the number of character in a JTextArea?
body: <p>I have a JTextArea and I need to take each one of the field's characters to translate it into another.
  But for this purpose I need to browse in the JTextArea.</p>
  
  <p>So I thought of a simple loop like:</p>
  
  <pre><code>for(int i = 0; i &lt;= t.length(); i++) { ... }
  </code></pre>
  
  <p>but the <code>length()</code> function is not appropriate and I can't find one which is.</p>
  
  <p>If anyone has already encountered this problem, I'd like a bit of help with it.</p>