String Array In Java

In this section, you will learn how to use string array in Java. Here, you will see how to declare a string array and the syntax for using in the program. This section provides you a simple java program which illustrates about the string array in very efficient manner.

Program Description:

Following code of the program declares a string array and store some strings Array Variable like Name_A . And in the main method these string are displayed one by one by retrieving from the Name_A. In this program all the string values are stored in the Name_A string array at the declaration time. Android Developing Code.

Here is the code of this program:

class StringCharacter 
  static String[] Name_A={"Good","Bad","Nice","Extra","Extraordinary","Mindblowing"};
  public static void main(String args[]){
  for(int i=0;i<6;i++){

Enjoy Code.