I have a text file that is tab-delimited. How can I separate this string into substrings for an array by detecting the tabs?
If you use String.split() you can split the String around any regular expression, including tabs. The regex that matches tabs is \t, so you could use the following example;
String foo = "Hello\tWorld";
String[] bar = foo.split("\t");
Which would return a String array containing the words Hello and World