Ask Question
20 October, 03:46

9.2 code practice edhesive

+5
Answers (1)
  1. 20 October, 04:33
    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?
Get an answer to your question ✅ “9.2 code practice edhesive ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers