suppose you have string like:
String longStr="someText1@someText2@someText3@someText@someText4@someText5@someText6@someText7@someText8@someText9@someText10@someText11@someText12@someText13@someText14";
how to get the index of the 10th occurrence of the @ character in the above String ?
i need the index to split from that index till the end.
You can use StringUtils.ordinalIndexOf() to Find the n-th index within a String
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With