SORU
23 ŞUBAT 2010, Salı


En özlü bir Set convert&; Dize> lt; List<String>

Şu anda bunu yapıyorum:

Set<String> listOfTopicAuthors = ....

List<String> list = Arrays.asList( 
    listOfTopicAuthors.toArray( new String[0] ) );

Buna ne diyeceksin ?

CEVAP
23 ŞUBAT 2010, Salı


List<String> list = new ArrayList<String>(listOfTopicAuthors);

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Awesomesauce Network

    Awesomesauce

    4 EKİM 2012
  • Edge-CGI 3D Tutorials and more!

    Edge-CGI 3D

    11 HAZİRAN 2013
  • The Exploiteers

    The Exploite

    4 Ocak 2011