File tree 1 file changed +3
-3
lines changed
build/shared/examples/08.Strings/StringAdditionOperator
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ void setup() {
23
23
; // wait for serial port to connect. Needed for native USB port only
24
24
}
25
25
26
- stringOne = String (" stringThree = " );
26
+ stringOne = String (" You added " );
27
27
stringTwo = String (" this string" );
28
28
stringThree = String ();
29
29
// send an intro:
@@ -34,11 +34,11 @@ void setup() {
34
34
void loop () {
35
35
// adding a constant integer to a string:
36
36
stringThree = stringOne + 123 ;
37
- Serial.println (stringThree); // prints "stringThree = 123"
37
+ Serial.println (stringThree); // prints "You added 123"
38
38
39
39
// adding a constant long interger to a string:
40
40
stringThree = stringOne + 123456789 ;
41
- Serial.println (stringThree); // prints " You added 123456789"
41
+ Serial.println (stringThree); // prints "You added 123456789"
42
42
43
43
// adding a constant character to a string:
44
44
stringThree = stringOne + ' A' ;
You can’t perform that action at this time.
0 commit comments