I have a serial number, for example 100101. which represents a particular item but I also have 200101, 300101, 400101... but the related documents depend on whether the first digit is 1, 2, 3 or 4.
With charAt
in a string I can remove the first character, that is, I have 'abcd'
and with charAt(0)
removes me 'a'
, is there something similar to charAt
but for numbers?