Java Tip to Initialize ArrayList in One Line

Tutorials Shared by the Internet Community

Advertisements


Java Tip to Initialize ArrayList in One Line

We all use ArrayList for different purpose, but how do we add data into ArrayList, by calling add() method. Well, there is a nice Java tip which allow

Statistics

  • Total Hits - 31795

  • Total Votes - 102 votes

  • Vote Up - 46 votes

  • Vote Down - 56 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Collections

  • Submitted By - Javin Paul

  • Submitted on - 2013-11-21 08:32:32

Description

    More detail...


Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements