How To Declare array Variables in Java

To utilize an array as a part of a system, you must declare a variable to reference the array. Besides this, you must determine the sort of array the variable can reference. Here is the syntax for declaring a variable of the type array:

datatype[] myarray;

Sample Implementation:

The accompanying code bits are illustrations of this concept:

double[] myarray;


For any query or issue, feel free to discuss on http://discuss.eduguru.in