Corrected formatting errors in String examples

This commit is contained in:
Tom Igoe 2010-08-11 20:27:28 +00:00
parent 50b05cb3cc
commit 564fd29edd
1 changed files with 8 additions and 3 deletions

View File

@ -17,12 +17,17 @@ void setup() {
void loop() {
// toUpperCase() changes all letters to upper case:
String stringOne = "<html><head><body>";
Serial.println(stringOne.toUpperCase());
Serial.println(stringOne);
stringOne = (stringOne.toUpperCase());
Serial.println(stringOne);
// toLowerCase() changes all letters to lower case:
String stringTwo = "</BODY></HTML>";
Serial.println(stringTwo.toLowerCase());
Serial.println(stringTwo);
stringTwo = stringTwo.toLowerCase();
Serial.println(stringTwo);
// do nothing while true:
while(true);
}
}