[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: &

[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