It worked.
Thanks a lot for your help

On Sep 13, 2:22 am, Jack Ha <[email protected]> wrote:
> Here is an example:
>
>     String[] list = TextUtils.split("a:b:c", ":");
>
> You need to import "android.text.TextUtils" like you said.
>
> --
> Jack Ha
> Open Source Development Center
> ·T· · ·Mobile· stick together
> The coverage you need at the price you want
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
> On Sep 12, 6:57 am, Boozel <[email protected]> wrote:
>
>
>
> > can some one please tell me how i can implement this method
>
> > static String[]  split(String text, Pattern pattern)
>
> >http://developer.android.com/reference/android/text/TextUtils.html#sp...,
> > java.util.regex.Pattern)
>
> > public static String[] split (String text, String expression)
>
> > String.split() returns [''] when the string to be split is empty. This
> > returns []. This does not remove any empty strings from the result.
> > For example split("a,", "," ) returns {"a", ""}.
> > Parameters
> > text    the string to split
> > expression      the regular expression to match
> > Returns
> > an array of strings. The array will be empty if text is empty
> > Throws
> > NullPointerException    if expression or text is null
>
> > i've imported import android.text.TextUtils; but eclips desnt
> > recognise any method i type in.
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to