| A good way for you to understand the split() method is to play around
with it by using this test program. The program takes 2 or 3 arguments
as follows:
java splitExample regex input [split limit]
regex - A regular expression used to split the input.
input - A string to be used as input for split().
split limit - An optional argument limiting the size of the list returned
by split(). If no limit is given, the limit used is
Util.SPLIT_ALL. Setting the limit to 1 generally doesn't
make any sense.
Try the following two command lines to see how split limit works:
java splitExample '[:|]' '1:2|3:4'
java splitExample '[:|]' '1:2|3:4' 3
|