String[] temp = s.split("|");

or

*StringTokenizer temp =new Stringtokenizer(s, "|");*

while(temp.*hasMoreTokens()*)
{
       System.out.pritnln(temp.nextToken());
}

2010/10/6 Nguyễn Đình Đoàn <[email protected]>

> Hi friends,
>
> I hava a String like this:
>
> String s = "abc|123|abc";
>
> How to split by "|" char (without double quote :d)
>
> Regards,
> Doan Nguyen Dinh
>
> --
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]<javaprogrammingwithpassion%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en




-- 
Thanks,
Pawan.

While one person hesitates because he feels inferior, another is busy making
mistakes and becoming superior.

Henry C. Link

-- 
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/javaprogrammingwithpassion?hl=en

Reply via email to