mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Corrected formatting errors in String examples
This commit is contained in:
parent
50b05cb3cc
commit
564fd29edd
@ -17,11 +17,16 @@ void setup() {
|
|||||||
void loop() {
|
void loop() {
|
||||||
// toUpperCase() changes all letters to upper case:
|
// toUpperCase() changes all letters to upper case:
|
||||||
String stringOne = "<html><head><body>";
|
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:
|
// toLowerCase() changes all letters to lower case:
|
||||||
String stringTwo = "</BODY></HTML>";
|
String stringTwo = "</BODY></HTML>";
|
||||||
Serial.println(stringTwo.toLowerCase());
|
Serial.println(stringTwo);
|
||||||
|
stringTwo = stringTwo.toLowerCase();
|
||||||
|
Serial.println(stringTwo);
|
||||||
|
|
||||||
|
|
||||||
// do nothing while true:
|
// do nothing while true:
|
||||||
while(true);
|
while(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user