this is the comment for String::formated method:
/** Creates a String from a printf-style parameter list. I don't like this method. I don't use it myself, and I recommend avoiding it and using the operator<< methods or pretty much anything else instead. It's only provided here because of the popular unrest that was stirred-up when I tried to remove it... If you're really determined to use it, at least make sure that you never, ever, pass any String objects to it as parameters. And bear in mind that internally, depending on the platform, it may be using wchar_t or char character types, so that even string literals can't be safely used as parameters if you're writing portable code. */
could anyone tell me how to use << for string?
I always use String::formated("%.1f", myFloatVal); to convert float value into string.
so anyone could tell me how to use << operator to achive the same target?
I only use << operator for inputstream / ouputstream instance.