Matt Cartwright wrote:you could iterate over your array and use
regular expressions instead of indexOf().
If you are using a fix set of regular expressions, compiling them (e.g. Pattern.compile())
would boost performance.
hope that helps
compiling them (e.g. Pattern.compile()) would boost performance.
Matt Cartwright wrote:PS: I wanted to attach the source code I've used. Unfortunately
.java, .zip, .tar and .gz are not valid extensions.