Submitted by heartin on Sun, 07/05/2020 - 05:29
ArrayList is a resizable-array implementation of the List interface.
Submitted by heartin on Sat, 07/04/2020 - 21:50
Traversing arrays
Traversing an array is the process of visiting each element of an array.
Two common ways to traverse an array are:
Example array
int[] myArray = {1,2,3,4,5}
Submitted by heartin on Sat, 07/04/2020 - 20:58
Arrays are data structures that hold a group of elements and each element has a position denoted by an integer called the index of that element.
Important properties of arrays
Important properties of arrays are:
-
Array indexes (element positions) have to be integers and start at 0.
Submitted by heartin on Sat, 07/04/2020 - 19:42
Multidimensional arrays are arrays of arrays. For instance, a 2D array is an array of 1D arrays and a 3 D array is an array of 2 D arrays, where each of those 2D arrays is again an array of 1D arrays.
Multidimensional array declaration and initializations
Declaration without initialization
int mArray[][]; or
int mArray1[][][]; or
int [] mArray2[][];
Submitted by sneha on Wed, 05/13/2020 - 23:35
Like in movies, going through some flash back through the history can help us understand the present better.
-
JDK Beta – 1995
-
JDK 1.0 – January 1996
-
JDK 1.1 – February 1997
-
J2SE 1.2 – December 1998
-
J2SE 1.3 – May 2000
-
J2SE 1.4 – February 2002
-
J2SE 5.0 – September 2004
-
Java SE 6 – December 2006
-
Java SE 7 – July 2011
-
Java SE 8 – March 2014
-
Java SE 9 – September 2017
Pages