Is String.toLowerCase() preserving 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/03/30
11:33 UTC
Read the original article
Hit count: 625
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