Java While Loop Through Array Matlab Install