Ok so I'm really novice at java and have been struggling with this particular exception. When I go and enter a name into the string, it pops the exception:
I could really use some help at this point I'm beat and struggling to really get anywhere with it.License Validator
Enter a last name: enter
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.String.charAt(Unknown Source)
System.out.println("License Validator"); String name1; int y = 1; while(y > 0){ System.out.print("Enter a last name: "); name1 = stdIn.nextLine(); int namelength = name1.length(); while(namelength>0){ char x = name1.charAt(namelength);