The parse method of the IntRanges Class contains the following signatures:
parse(String str, String delims)
parse(String str)
Parses the ranges in the string, separated with specified delimiters. This method tokenizes using StringTokenizer.
public synchronized void parse(String str, String delims);
str | The string to be parsed. |
delims | The delimiters. |
Parses comma-delimited ranges in the string.
public void parse(String str);
str | A string containing ranges of integers, where the bounds of each range are separated by a hyphen (-). A range of a single integer can be entered by including just the single integer, separated by delimiters. |