Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 8 - Arrays In IntelliJ, navigate to the Labs package and create another package named Lab8 - Create a class in the Labg package

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Lab 8 - Arrays In IntelliJ, navigate to the Labs package and create another package named Lab8 - Create a class in the Labg package called Array.java with a main method that will do the following: a. Input at the command line the following String: "Beth. Rick Jerry Rick Summer Morty" (DON"T type the "") i Step 1: Go to Run Edit Configurations Refactor Build Run Tools VCS Window Help Run Lab 13Test AR Debug Lab 13 Test Lab13) - Run Lab 13 Test' with Coverage Run. AYR Debug. AD Profile... ryfolder folder ! Attach to Process Edit Configurations. out Program Test History Pragrafest() the Import Tests from File File generate ii. Step 2: Go to Application, you might need to use the key to find it, and add the program arguments needed S Lab 07 Methods to ... H. 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. b. 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 = args[0].split(""); c. Create another String array called customerName. This array will have eight string objects. d Create a for loop to copy each element in the tokens array into the customer Name array. At this point the last two positions in the tokens array will be mill. 0 Beth 1 Rick 2 Jerry 3 Rick 4 Summer 5 Morty 6 7 e. Write a method, displayNames to display the names within the array. You will pass the Lab 07-Methodsdocx 2 Page

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions