
Java create new array of strings.

Example:
public class StringArray {
public static void main(String[] args) {
String name[] = { "mandy", "Rixi", "Ron" };
for (String list : name) {
System.out.println(list);
}
}
}
Description: Array is container which holds fix length of any kind of data type (eg. int,char,float etc). For example String name[]=new String[7] name is an String type array can hold 7 values. You can also pass value directly to your string array String name[] = { "mandy", "Rixi", "Ron" };
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.