Example of what I want to do: If you pass in \"abc|xyz\" as the first argument and \"|\" as the second argument the method returns List(\"abc
\"abc|xyz\"
\"|\"
List(\"abc
Is it what you are looking for ??There is a predefined function in String class.Make use of it
String original ="abc|xyz"; String[] resulted =original.split("\\|");//returns a String array
Play with the resulted array here.
resulted
Good luck.