android - How to get a value in a string list? -



android - How to get a value in a string list? -

i have list containing following:

string list[]={"team 1,apple,mango,kiwi","team 2,mango,kiwi,pineapple","team 3,kiwi,pineapple,apple"};

my question is, how know each team has? how team name?

i have output:

team 1,team 3(apple,kiwi) team 1,team 2(mango,kiwi) team 2,team 3(pineapple,kiwi)

can tell me can done or do?

in order values of first string in list of strings can split string "," , set in list following: string s1 [] = list[0].split(","); , s1[0] team1 s1[1] apple etc..

android

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -