mi idea seria que pongas en un string todos los tokens que necesites
public void toke() {
String datos
= "x + y = 5;2x - 5y = 4"; for (int i = 0; i < tkNeed.length(); i++) {
String caracterTk
=tkNeed.
charAt(i
)+""; int ndatos;
while (tk.hasMoreTokens()) {
}
}
}