dimanche 22 février 2015

Break string in to two from an exact position in Java

I have a string that which contains a date and an index number. Simply if i enter something today and that is the 4th record.. it will go as "2015022204". so what i need to do is break this string into two from the 8th position of the string and store both in two different strings. Can we do this without using any importing any libraries? Any easy method to do this??


Aucun commentaire:

Enregistrer un commentaire