MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / print

Method print

src/main/java/com/thealgorithms/sorts/SortUtils.java:65–68  ·  view source on GitHub ↗

Prints the elements of a list to standard output. @param listToPrint the list to print

(List<?> listToPrint)

Source from the content-addressed store, hash-verified

63 * @param listToPrint the list to print
64 */
65 static void print(List<?> listToPrint) {
66 String result = listToPrint.stream().map(Object::toString).collect(Collectors.joining(" "));
67 System.out.println(result);
68 }
69
70 /**
71 * Prints the elements of an array to standard output.

Callers 4

mainMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45
calculateMaxOfMinMethod · 0.45

Calls 2

streamMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected