This is the code
#include <List.hpp>
void setup() {
Serial.begin(115200);
List <String> list;
String test = " ";
String test1= "item";
for (int i = 0; i <= 5; i++)
{test= test1+i;
String testCopy;
testCopy(test);
list.add(testCopy);
Serial.println(*list[i]);
}
for (int i = 0; i <= 5; i++)
{Serial.print(i);
Serial.println(": ");
if(*list[i]=="item3")
{Serial.println("diferent"); //
}
Serial.println(*list[i]);
Serial.print("Capacity: ");
Serial.println(list.getSize());
}
}
void loop() {
}