Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 7327
Total Votes: 143 votes
Average Rating: 2.87 out of 5
Description: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 allows you to initialize ArrayList in the same line, where you are creating instance of it. This article demonstrate that tip with a simple example.