The document contains code for two methods. The first method returns the smallest number in an integer array. It returns -1 if the array is null, otherwise it iterates through the array and returns the smallest value. The second method returns the character that occurs last in a string. It converts the string to a character array, iterates through checking for the highest value, and returns the corresponding character.
The document contains code for two methods. The first method returns the smallest number in an integer array. It returns -1 if the array is null, otherwise it iterates through the array and returns the smallest value. The second method returns the character that occurs last in a string. It converts the string to a character array, iterates through checking for the highest value, and returns the corresponding character.
The document contains code for two methods. The first method returns the smallest number in an integer array. It returns -1 if the array is null, otherwise it iterates through the array and returns the smallest value. The second method returns the character that occurs last in a string. It converts the string to a character array, iterates through checking for the highest value, and returns the corresponding character.
The document contains code for two methods. The first method returns the smallest number in an integer array. It returns -1 if the array is null, otherwise it iterates through the array and returns the smallest value. The second method returns the character that occurs last in a string. It converts the string to a character array, iterates through checking for the highest value, and returns the corresponding character.