Java

58
2880 reads

February 21, 2013

Modulus Operator


The program below demonstrates the % operator.

70
4200 reads

February 21, 2013

Basic Math


The program below demonstrates the basic arithmetic operators.

65
3130 reads

February 21, 2013

3D Array


The program below demonstrates a three dimensional array.

65
2934 reads

February 21, 2013

2D Array


The program below manually allocates differing size second dimensions.

69
2963 reads

February 21, 2013

Two Dimensional Array


The program below demonstrates a two dimensional array.

70
3088 reads

February 21, 2013

Array of values


The program below computes the average of all the elements in the array.

81
2801 reads

February 21, 2013

One dimensional array


The program below is an improved version of "1D Array" Example.

82
3354 reads

February 21, 2013

1D Array


The program below demonstrates a one dimensional array.

71
2937 reads

February 21, 2013

Computing with different data types


This example shows different kind of computations.

72
3288 reads

February 21, 2013

Casts


The program below demonstrates casts.