Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

list of longs to comma separeated string java

List<Long> longList = new ArrayList<Long>(Arrays.asList(1L, 2L, 3L));
		
		System.out.println(longList.stream().map(String::valueOf)
		        .collect(Collectors.joining(",")));
//Output ->  1,2,3
 
PREVIOUS NEXT
Tagged: #list #longs #comma #separeated #string #java
ADD COMMENT
Topic
Name
8+6 =