using String.charAt() for semicolons
Been a while since I posted here.
I haven't tested it yet, but thought I should try asking nonetheless. When using the charAt(int) method from the String class what would it return if the character at that index were a semicolon?
For example if I had the String hell;o
would that work or would I need to use the unicode number (UTF 59 as my research has told me) for a semicolon instead?
if (stringName.charAt(stringName.length-2) == ';')
If both work then what are the pros/cons of each approach?
Perhaps relatively simple for you guys but it something I have been thinking about.
Thanks in advance for your help everyone.