What is wrong in in this code?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5209548/java-programing-exception">Java programing exception</a>  </p>
</blockquote>



<p>Can any one help me?  I do not understand this exception:</p>

<pre><code>Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 9
    at java.lang.String.charAt(Unknown Source)
    at charPerLine.main(charPerLine.java:13)
</code></pre>

<p>Here's the code</p>

<pre><code>import java.util.*;
public class charPerLine {

    public static void main(String[] args)throws StringIndexOutOfBoundsException {
        Scanner sc=new Scanner(System.in);
        System.out.print("Type any name:");
        String s=sc.next();
        int j= s.length()+1;
        for(int i=0;i&lt;=j;i++){
            System.out.println(s.charAt(i));
        }
    }
}
</code></pre>
