Use ld.charAt(0). It will return the first char of the String.
With ld.substring(0, 1), you can get the first character as String.
Use ld.charAt(0). It will return the first char of the String.
With ld.substring(0, 1), you can get the first character as String.