// create sample array
int intArray[] = { 1, 2, 4, 8, 16 };
IntIterator begin = IntIterator.begin( intArray );
IntIterator end = IntIterator.end( intArray );
Printing.println( begin, end );
// make sure destination hase enough space allocated
Array array = new Array( 5 );
Counting.adjacentDifference( begin, end, array.start() );
Printing.println( array );