Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个函数 printAll(),它只接受那些实现了 Iterable 的元素,这样我就可以遍历它们并打印这些元素。我怎么做?
public static void printAll(final Iterable<?> toIterate).
public static void printAll(final Iterable<?> toIterate)