1. Write a program that reads from the console a sequence of positive integer numbers. The sequence ends when an empty line is entered. Print the sequence sorted in ascending order.
2. Write a method that finds the longest subsequence of equal numbers in a given List and returns the result as new List. Write a program to test whether the method works correctly.