String tokenizer contrusts a string tokenizer from a specified string: (https://docs.oracle.com/javase/7/docs/api/java/util/StringTokenizer.html)
public StringTokenizer(String str, String delim, boolean returnDelims)
As your parameters you have a a object declaration declaring an int value, a delim which is an equal sign and delim flag which is true (which returns the delim character as a token)
Maybe you should refactor your String tokenizer instance to the following:
String b = "DDEFI-b-=-10"; //Create the string to be evaluated
String delim = "-"; //Create a delim which serves as a separator
(Defining the string as "DEFI-b-=-10" - will provide the correct spacing with your delim)
StringTokenizer tk= new StringTokenizer (b, delim);
/* Loop through the elements printing out the specified string */
while(tk.hasMoreElements()) {
System.out.println(tk.nextToken());
}
//Result
DEFI
b
=
10