Java While Loop Through An Array Bash Script Tutorial