Kamis, 28 Maret 2019

the application of Array in Java

A. Definition of Arrays

An array is a variable that can store a lot of data in one variable. Arrays use indexes to facilitate access to the data they store. The array index always starts from 0 and also not always in the form of numbers, it can also be characters or text.

B. 1 Dimensional Array
1 dimensional array are of data that have variable names and the same data type that can be accessed using just one index.


An example of applying an array 1 dimensional  using java:
C. 2 dimensional array
2 dimensional arrays are arrays that have two indexes.
This two-dimensional array is often used to represent tables of values consisting of information arranged by rows and columns.

An example of applying a 2 dimensional array  using java:
D. 3 Dimensional Array 
3 dimensional arrays are elements that have more rows, columns and sizes than two-dimensional arrays, these are expansion arrays of two-dimensional arrays and can be expanded to more than two dimensions.

An example of applying a 3 dimensional array using java:
E. Analysis
1. ";": semicolon as a sign of the end of a line
2. System.out.println: as a line of text, the contents of which will be run
3. Public Class Java Java Class Name ’{: Heading from a java application which if changed, the application will error or not run
4. Public Static Void Main (String [] args) {: a kind of introduction in the java / opening argument argument
5. (String [] args) {: String (all characters in it), args (argument)
6. Java programming has a high level of sensitivity to program errors so it needs precision in making the source code

7. To find out the location of the program error, the Netbeans IDE editor displays a red sign on the left side of the wrong code

Tidak ada komentar:

Posting Komentar

Gunakan bahasa yang sopan please :)