AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sottostringa di una stringa

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Apr 26, 2006 1:12 pm    Post subject: Sottostringa di una stringa Reply with quote



Ciao a tutti il mio problema è il sequente:
ho delle stringhe che terminano con ".mdb" per esempio:
AC_01.mdb,DS_09.mdb....
esiste una funzione che mi restituisca la stringa senza la parte finale
(.mdb)?
se si mi potete dire qual'è? grazie!
Back to top
Guest






PostPosted: Wed Apr 26, 2006 2:12 pm    Post subject: Re: Sottostringa di una stringa Reply with quote



Grazie 1000!
Back to top
Guest






PostPosted: Wed Apr 26, 2006 2:12 pm    Post subject: Re: Sottostringa di una stringa Reply with quote



lambertovenga (AT) hotmail (DOT) com ha scritto:

Quote:
Ciao a tutti il mio problema è il sequente:
ho delle stringhe che terminano con ".mdb" per esempio:
AC_01.mdb,DS_09.mdb....
esiste una funzione che mi restituisca la stringa senza la parte finale
(.mdb)?
se si mi potete dire qual'è? grazie!

String a = "AC_01.mdb";
String b = a.substring(0,a.indexOf(".mdb"));
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.