for i from 0 to length(intarray)-2{ for j from i+1 to length(intarray)-1{print intarray[i]+intarray[j] code example
Example 1: java array declaration
int[] array = new int[/*size*/];
// Works for double, char, etc.
Example 2: new in t arrray java
int[] myIntArray = {1, 2, 3};