Could you please assist me with the code for splitting this string. I am using “|” as a special character to mark how the splitting is to be done
The string is “The|value|is|infinite” so that after splitting I have ‘the’,’value’,’is’ and ‘infinite’ as separate strings. Thank you.
String.split() works for you.