partNames is a String array containing 100 elements. Write a for loop (standard for loop, not enhanced) to print out each element in the array, preceded by its subscript+1. Your output should look like this. Part Name 1 Wrench Pliers etc. 100 Screwdriver Liust made

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Java code
partNames is a String array containing 100 elements. Write a for loop (standard for loop, not
enhanced) to print out each element in the array, preceded by its subscript+1. Your output
should look like this.
Part Name
Wrench
Pliers
etc.
100
Screwdriver
(The words Wrench, Pliers, and Screwdriver are the strings stored in the array. I just made
these up to demonstrate the format. Don't worry about what they actually are.)
Edit View
Insert
Format
Tools
Table
12pt v
Paragraph v
BIU
Transcribed Image Text:partNames is a String array containing 100 elements. Write a for loop (standard for loop, not enhanced) to print out each element in the array, preceded by its subscript+1. Your output should look like this. Part Name Wrench Pliers etc. 100 Screwdriver (The words Wrench, Pliers, and Screwdriver are the strings stored in the array. I just made these up to demonstrate the format. Don't worry about what they actually are.) Edit View Insert Format Tools Table 12pt v Paragraph v BIU
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage