Hi there.
I am facing problems with the .startsWith functions
These are my codes:
void setup(){
Serial.begin(9600);
String apple = "doctors hate me";
if (apple.startsWith="doctors"){
Serial.println(apple);
}
}
void loop(){}
Problem:
-the .startsWith does not turn orange in the Arduino IDE which surely is an indication of trouble.
-i get the error message of "invalid use of member (did you forget the '&'?)" at that line of code.
Do i need to initialise any libraries or update anything for this to work?
I am using Arduino 1.0.6 to go with Arduino micro