Here is my code:
StringTokenizer line = new StringTokenizer("{([]{()})({})}");
System.out.println("Count: " + line.countTokens());
The output is always Count: 1
I know this shouldn't he happening with such a simple code. Could there be something wrong with the StringTokenizer
library?
Please help!