Java While Loop Through Array Matlab Webread