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