Spring tutorial to convert Java collection to String

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Apart from dependency Injection , Spring framework also has a good Java library which provides lots of utility method. One of them is collectionToComm

Statistics

  • Total Hits - 15752

  • 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. ...


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

Advertisements