How to declare array in Java?

Ads
 

How to declare array in Java?

Hi,

How to declare array in Java?

Thanks

View Answers

April 16, 2017 at 7:52 PM

Hi,

Following is a code of declaration of String array:

String[] javaTechnologies = new String[]{"Java", "JSP", "Servlet", "JPA"};

Example of declarating integer array:

int[] nums = new String[]{1,2, 5, 7};

Check more example at Java Array declaration.

Thanks

Ads









Related Tutorials/Questions & Answers:
How to declare array in Java?
How to declare String array in Java?
Advertisements
Java2
Declare string array in Java (one and two dimensional)
How to Print Array in JavaScript
How to declare NSMatrix
Java Array declaration
declare a variable that will store an array of 5 objects
How to Declare Abstract Class in PHP ?
How to Declare fflush() Function in PHP
Javah
Some array operations (declare, initialize, reassign)
How to: generic array creation
How to Prepend Array in PHP
How to Convert ArrayList to Array?
how to create array in r
ModuleNotFoundError: No module named 'javax'
ModuleNotFoundError: No module named 'javax'
how to use button in array
Array declaration in Java
how to make a program on array
Javap Tool application
How to move a value in array?
How to move a value in array?
How to declare a Combobox without using a string in its declaration?
How can I call a Servlet that is declare on web.xml with spring framework
How to create dynamic array in C?
How to fill double array in java
Artifacts of javax
How to create and use Array in Java?
How to calculate average of array in Java?

Ads