For Example a set{1,2,3,4,5} with a delimiter @ I want to have a return string of 1@2@3@4@5
The tricky part is, I have many different sets,
Set<Integer>, Set<String>, Set<Long> and so on.
And I know I can do it in separate functions using a loop. But I just don't want to be tedious and want to do it in one function using Java Generics or whatever that can help. I have done some brain storm but in vain. :(
Any idea is appreciated!