[android-beginners] Re: splitting the string in java

2008-09-17 Thread patelpower
Thanks, Now Its working Fine On Sep 17, 8:16 pm, "Chris Chiappone" <[EMAIL PROTECTED]> wrote: > you need to escape a dot.  playlistname.split("//.") > > > > > > On Wed, Sep 17, 2008 at 6:38 AM, patelpower <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > >  i am traying to split the string as

[android-beginners] Re: splitting the string in java

2008-09-17 Thread pmu
Hi rakesh. java.lang.String#split() takes a regular expression as parameter. This should do... ---*snip*--- String playlistname = "1.dat"; String[] result = playlistname.split("\\."); ---*snip*--- /pmu On Sep 17, 2:38 pm, patelpower <[EMAIL PROTECTED]> wrote: > Hello everyone, > >  i am trayin

[android-beginners] Re: splitting the string in java

2008-09-17 Thread Chris Chiappone
you need to escape a dot. playlistname.split("//.") On Wed, Sep 17, 2008 at 6:38 AM, patelpower <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > i am traying to split the string as per below code but its not > working so anyone can help me out > > > code: > playlistname = 1.dat

[android-beginners] Re: splitting the string in java

2008-09-17 Thread pmu
Hi Rakesh. Since String#split() receives a regular expression as parameter and returns a String array you should try: String[] result = playlistname.split("\\.") Phil On Sep 17, 2:38 pm, patelpower <[EMAIL PROTECTED]> wrote: > Hello everyone, > >  i am traying to split the string as per below