Good afternoon, everyone. I am currently trying to print elements of an array of String objects and having some difficulty. I have searched the forums for a solution to this problem but have not found someone posting about the same problem I am facing. Also, I have seen some posts where the proposed solution is exactly what is not working in my case. Any help would be greatly appreciated.
I have reduced the problem down to four lines of code (with comments for explanation of the problem), for example purposes. All of the below example code takes place inside the setup() function.
//For testing only
String Things[2]; //Declare array of Things
Things[0] = "First thing"; //Populate the first element with a string
Serial.print("First element in the array is called: ");
Serial.println(Things[0]); //Print the first element in the array. This line prints blank
I have also attached a screenshot of my code, in case it is easier to see. Thank you all so much for taking a look. If I can answer any additional questions, please let me know and I will provide as much information as I can.
Best Regards,
Donovan
