java - Get string from ("\n") new line operator -



java - Get string from ("\n") new line operator -

i have arraylist containing string abc"\n"1234,cde"\n"567 fgh"\n"890. want string found new line. array want 1234,567 , 890. here doing. says "incompatible types" have show dialog containing these contacts.and if user click on contacts opens dialer activity.

for(string contact: manycontacts){ string contacts=contact.split("\\r?\\n"); }

split returns string[] not string

for(string contact: manycontacts){ string[] contacts=contact.split("\\r?\\n"); }

if need 1 string have iterate on array , concatinate strings. or utilize commons-utils apache bring together it.

java

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -