[ad_1]
charAt is zero based.
You should use ab.charAt(0) if you use only a single char.
Another good advice is to start method names with a lower case and use the camelCase format.
3
[ad_2]
solved if char equals a letter then execute a code
[ad_1]
charAt is zero based.
You should use ab.charAt(0) if you use only a single char.
Another good advice is to start method names with a lower case and use the camelCase format.
3
[ad_2]
solved if char equals a letter then execute a code