Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In IntelliJ, navigate to the Labs package and create another package named Lab 8 . Create a class in the Lab 8 package called Array.java
In IntelliJ, navigate to the Labs package and create another package named Lab
Create a class in the Lab package called Array.java with a main method that will do the following: Note: Document your algorithm as comments near related lines of code
Input at the command line the following String: BethRick,Jerry,Rick,Summer,MortyDONT type the
Step : Go to Run Edit Configurations
Step : Go to Application, you might need to use the key to find it and add the program arguments needed.
This will allow that string to be entered into the program when it is run. This string will be stored in the String args array in the position.
Use this inputted String and the method split to create an array of String
objects called tokens. The actual code you will use is below:
String tokens argssplit;
Create another String array called customerName. This array will have eight String
objects.
Create a for loop to copy each element in the tokens array into the customerName
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started