java - Convert Iterable to Array -


i need return string array. use guava split string. please see code below

iterable<string> arrayofvalues =  splitter.on(";").split(mystring); 

it returns iterable. need string[]. there way give iterator< element > , convert array[]. many thanks

use iterables.toarray(iterable<? extends t> iterable, class<t> type) method in guava.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -