Please help with writing java program, using the three different methods.
Write a method readData(...) that reads and returns a list of integers. The list is preceded by the number of items in the list.
For example, the data 6 9 7 5 3 1 2 indicates that there are 6 items in the list. The leading 6 is not included in the list bust specifying the size of the list.
Write another method printList(..) that displays all elements and an array.
Write a main method to test above methods by calling readData to read an array of integers and calling printList to display these integers.