Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

First, launch NetBeans and close any previous projects that may be open (at the

ID: 3917655 • Letter: F

Question

First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).

Then create a new Java application called "Parser" (without the quotation marks) that uses methods to:

Get a comma-delimited String of integers (e.g. "4, 8, 16, 32") from the user at the command line and then convert the String to an ArrayList of integers (using the wrapper class) with each element containing one of the input integers in sequence

Print the integers to the command line, using a for loop, so that each integer is on a separate line

Explanation / Answer

Following is the answer: