Write a method
static <T> Stream<T> zip(Stream<T> first, Stream<T> second);
that alternates elements from the streams first and second, stopping
when one of them runs out of elements.
Write a method
static <T> Stream<T> zip(Stream<T> first, Stream<T> second);
that alternates elements from the streams first and second, stopping
when one of them runs out of elements.
Todays Quiz :
Write a function which returns all the files with a particular extension in a given directory.
Implement the following method and print them.
List<File> printAllFiles(String filePath, String extension);