I want to write a function printAll(), which accepts only those elements that implement that implement Iterable so that I can iterate over them and print the elements. How do I do that?
I want to write a function printAll(), which accepts only those elements that implement
Share
public static void printAll(final Iterable<?> toIterate).