Ask Question
16 October, 20:21

9.2 code practice edhesive

+4
Answers (1)
  1. 16 October, 21:28
    0
    import java. util. Scanner;

    public class Main

    {

    public static void main (String[] args) {

    String NAME[] = new String[5];

    Scanner s1 = new Scanner (System. in);

    System. out. println ("Enter Array Elements (Names) ");

    for (int i=0; i < = 4; i++)

    {

    NAME[i] = s1. nextLine ();

    }

    System. out. println ("Array Elements (Names) ");

    for (int i=0; i < = 4; i++)

    {

    System. out. println (NAME[i]);

    }

    }

    }

    Explanation:

    We need to write a program in java to explain the array declaration. And we have that program in the answer section.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “9.2 code practice edhesive ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers