Given an array of integers, write a function to return the duplicated numbers. Solve it using Java Streams.