Question : java int array
Answered by : evan-keegan-donnelly
int[] theNumbers = new int[5];
arr[0] = 4;
arr[1] = 8;
arr[2] = 15;
arr[3] = 16;
arr[4] = 23;
arr[5] = 42;
Source : | Last Update : Tue, 25 Feb 20
Question : How to Initialize Arrays in Java?
Answered by : samer-saeid
//declare and initialize and array
int[] age = {12, 4, 5, 2, 5};
Source : | Last Update : Mon, 30 May 22