Tony Docherty wrote:
40 the position of the match is 16
Sorry but that makes no sense to me. What is this algorithm supposed to do and what does it actually do?
sorry for the later replyCampbell Ritchie wrote:And why are you using a tokenizer, which has been regarded as legacy code for over ten years?
Tony Docherty wrote:
You have a semi colon at the end of the line so this line repeats until FileName is null and then the rest of the code executes.
Jesper de Jong wrote:The stack trace tells you that a NullPointerException occurs in the constructor of StringTokenizer. The API documentation for the constructor of StringTokenizer says:
public StringTokenizer(String str, String delim)
...
Throws: NullPointerException - if str is null
Most likely you are passing null to the constructor of StringTokenizer.
Kemal Sokolovic wrote:Well, you might review the tutorial I gave you in the previous post. Also similar topics were covered couple of times here at the forum, so if you search a bit you can find a lot of information (like this).
Kemal Sokolovic wrote:Do you understand the concept and purpose of abstract classes?