Spring tutorial to convert Java collection to String
Tutorials Shared by the Internet Community
Advertisements
Spring tutorial to convert Java collection to String
Apart from dependency Injection , Spring framework also has a good Java library which provides lots of utility method. One of them is collectionToCommStatistics
Total Hits - 32239
Total Votes - 98 votes
Vote Up - 42 votes
Vote Down - 56 votes
Domain - javarevisited.blogspot.com
Category - JAVA/Spring
Submitted By - Javin Paul
Submitted on - 2013-01-20 07:13:10
Description
Apart from dependency Injection , Spring framework also has a good Java library which provides lots of utility method. One of them is collectionToCommaDelimitedString , which can be use to convert a Collection e.g. List of String into comma separated or any other delimiter separated String. It automatically handles special case like not putting command after last element etc. More detail...
Advertisements