Is there a way to convert strings inside an array into lowercase?
So say I have an array like:
String mainArray[] = {"Dog", "caT", "ElepHANT", "Hungry", "LION"}
// So mainArray[0] = "Dog" mainArray[1] = "caT" etc.
// So i get:
mainArray[] = {"dog", "cat", "elephant", "hungry", "lion"}
Is there a function or method to iterate through the array and transform each string into lowercase?