Does Java's toLowerCase() preserve original string length?

Posted by MicSim on Stack Overflow See other posts from Stack Overflow or by MicSim
Published on 2010-03-01T16:32:44Z Indexed on 2010/04/13 13:52 UTC
Read the original article Hit count: 385

Filed under:
|
|

Assume two Java String objects

String str = "<my string>";
String strLower = str.toLowerCase();

Is it then true that for every value of <my string>

str.length() == strLower.length()

evaluates to true?

So, does String.toLowerCase() preserve original string length for any value of String?

© Stack Overflow or respective owner

Related posts about java

Related posts about string