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 : initialize a char array java
Answered by : cloudy-caribou-0sy6z3pjowfx
// here's how you declare a char array
char[] charArray = new char[]{/*your elements here separated by a comma*/};
Source : | Last Update : Tue, 07 Jun 22
Question : 1 elemenet array java
Answered by : healthy-hawk-nqptbfccn69x
String[] arr = {"I am the one and only"};
Source : https://stackoverflow.com/questions/3582502/best-way-to-create-singleton-array | Last Update : Fri, 23 Oct 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