It creates a new String which is a lower case version of
the original string.
toLowerCase() MethodLook at these lines of code:
String burns = "My love is like a red, red rose.";
. . . . . .
if ( burns.toLowerCase().startsWith( " MY LOVE".trim().toLowerCase() ) )
System.out.println( "Both start with the same letters." );
else
System.out.println( "Prefix fails." );
What does the above write to the monitor?