Answers for "how to declare array"

32

how to create an array in java

int[] array1 = new int[5]; //int array length 5
String[] array2 = new String[5] //String array length 5
double[] array3 = new double[5] // Double array length 5
Posted by: Guest on January-28-2020
5

how define array js

var Names = ["Arbab","Ali","Ahsan"]
Posted by: Guest on May-26-2021
4

how to declare an array in javascript

var array = [item1, item2, .....];
/*

  item1 and item2 could be a string (which is 
  a letter written in double or single quotes like this "string" or 'string') or 
  a number (which is just a normal number on the keypad) or a boolean (which is 
  an experssion which either returns to true of false) and the ..... means that 
  the inputs can be infinite.
  
*/
Posted by: Guest on July-23-2021
4

javascript declare array

var array = []
Posted by: Guest on August-17-2020
1

how to make a fixed size array in java

dataType[] arrayRefVar = new dataType[arraySize];
Posted by: Guest on May-22-2020
0

declare array in javascript

const products=["watch", "pc", "mouse", "keyboard"];
Posted by: Guest on September-02-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language