String elementAt(int nth)
DtpNoElementAtPositionException - If you specify an invalid position for nth.
Elements are numbered from first to last beginning with zero. For example, if the delimiters are commas and spaces, then the element at position two in the string, "This,is a test" is "a".
The elementAt() method returns the element at the specified position but does not change the current element position.
// Create a DtpSplitString object DtpSplitString MyString = new DtpSplitString("This,is a test",", "); //This call returns "a" public String MyString.elementAt(2);