I\'m struggling to work out how to get the distinct integers from an object list as an array using Streams.
Consider I have the below class:
public class P