Question: Must use Array. Must be in JAVA. Write a program that uses a Scanner object to read in a sequence of integers. The first number

Must use Array. Must be in JAVA.

Write a program that uses a Scanner object to read in a sequence of integers. The first number in the sequence represents the number of integers in the sequence (i.e., do NOT include the first number as part of the sequence).

Create an array of integers that is the same size as the number of integers. Then the program will read each integer and place it in the array. Print the content of the arrays on one line (each integer separated by a comma).

Details

Input

A sequence of integers, where the first integer represents the number of integers.

Example Input: 5 31 5 18 9 10

Output

Print the array contents with a comma separating the numbers on one line.

Example Output: 31, 5, 18, 9, 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!