[Solved] String.toUpperCase()

String.toUpperCase() seems not there on Spark Core. What should I use to convert entire String to upper case or lower case?

Seems like it is: http://docs.spark.io/firmware/#string-class-touppercase

How are you determining that itā€™s ā€˜not thereā€™ ? :wink:

1 Like

It is definitely thereā€“it does its work ā€œin placeā€, that is, it does not return a value:

    String myStr = "foo";
    myStr.toUpperCase();
1 Like

Thanks bko, it worked.

1 Like