When I run this program I always get:
Exception in
thread "main" java.lang.StringIndexOutOfBoundsException:
String index out of range: 6
at java.lang.String.charAt(Unknown Source)
at j32016.main(j32016.java:31)
What's causing the exception? How do I fix it?