Q:

java create array with values

int intArray[];    //declaring array
intArray = new int[20];  // allocating memory to array
//OR
int[] intArray = new int[20]; // combining both statements in one
14
//Given values must match array type
int[] myIntArray = {1, 2, 3};
2
(file name) file name(s) = new (File name)[/*amount*/]
  
  void setup() {
  	for (int i = 0; i < (file name(s)).length; i++) {
    	 
    }
  }
3

New to Communities?

Join the community