qestion about arrays, and one about images

Hello

// Arrays

what is the difference between the following:

int[] bits ={ 8, 8, 8};

// and

int bits =newint[]{8};

// Images

in the JAI there is some functions to find the maximum of pixel values of two images

ReenderOp im2 = JAI.create("max", im0, im1);

the question is what are those values? I really don't understand what is this maximum.

[701 byte] By [tleis1a] at [2007-10-1 2:10:49]
# 1

// this line compiles

int[] bits = { 8, 8, 8 };

// this line has a fatal type-mismatch error (array versus non-array)

int bits = new int[]{8};

BIJ001a at 2007-7-8 10:40:35 > top of Java-index,Administration Tools,Sun Connection...
# 2

int[] bits1 = { 8, 7, 6 };

// and

int [] bits2 = new int[]{8,7,6};

Both mean the creation of an int array and assigning that as an initial value to the corresponding variable. This assignment takes place in run-tiime. In C (or C++) the similar initial value assignment is performed statically, that is, during compile and link time.

BIJ001a at 2007-7-8 10:40:35 > top of Java-index,Administration Tools,Sun Connection...
# 3
thank you BIJ
tleis1a at 2007-7-8 10:40:35 > top of Java-index,Administration Tools,Sun Connection...