Question: Java jgrasp Consider the following code segment: String name - Mercy College a) Is the variable name an array? b) An array can be accessed
Consider the following code segment: String name - "Mercy College" a) Is the variable name an array? b) An array can be accessed by indices. Is namel[IJa valid statement? If so, what docs i contain? If not, explain why not. c) Using a for loop, write a code segment that can print as shown below (one letter per line): C: Mercy Book_java java06array>java BasicArray Hint: look up an API for the class String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
