ho un tokenizer che come string delimiters dovrebbe avere punto interrogativa, avanzamento di riga e tab. Ho provato:
st = new StringTokenizer(stringa,"?\n\t");
ma non funzia. Cosa sbaglio?
ho un tokenizer che come string delimiters dovrebbe avere punto interrogativa, avanzamento di riga e tab. Ho provato:
st = new StringTokenizer(stringa,"?\n\t");
ma non funzia. Cosa sbaglio?
Walk fast, chew slowly.
"We used students as subjects because rats are expensive and you get too attached to them"
azzo mi sa che mi sono confuso, ho scritto che volevo come carattere l'avanzamento di riga intendendo come avanzamento di riga uno spazio bianco, la barra per intenderci, sto facendo una gran casino? Per il tab funziona.
Walk fast, chew slowly.
"We used students as subjects because rats are expensive and you get too attached to them"
Per avere uno spazio bianco basta che inserisci
new StringTokenizer(stringa,"?\n ");
Lang=Java
Ambiente = Eclipse forever
Ubuntu & Win XP Pro