Originariamente inviato da Xadoom
Oppure così:
codice:
stringa = stringa1.substring(0,indexOf('.') + stringa2;
Mi pare + comodo.
Ho provato:
c_Nomefile = c_Nomefile1.substring(0,indexOf('.')) + c_Nomefile2;

e mi dà errore:

Client.java:33: cannot resolve symbol
symbol : method indexOf (java.lang.String)
location: class Client
c_Nomefile = c_Nomefile1.substring(0,indexOf(".")) + c_Nomefile2;
^
1 error

Perchè?