Java Loop Through Array Of Strings Matlab