title: Java-Storing characters of a string in an array
body: <pre><code>    for (int j = 0; j &lt;= l - 1; j++) 
     { char c1 = str.charAt(j);
        n[j] = c1;
     }
  //It is showing error-arrayIndexoutofbounds
  </code></pre>
  
  <p>'str' is an inputted string and 'l' is the length of the string str.
  I have to store all its character in an array and the array 'n' is of char type 
  I have tried to store it by for loop but its showing error . Please help me out. 
  Just remove that equal to sign in ur loop it will only be less than</p>