Write a method readdata that reads and returns a list of


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.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a method readdata that reads and returns a list of
Reference No:- TGS02892373

Expected delivery within 24 Hours