![]() Please note that other Pearson websites and online products and services have their own separate privacy policies. This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site. Alternatively, you can always use the equalsIgnoreCase() method of the String class, which performs a non case sensitive comparison. ![]() So, when comparing the user ID, you should convert to a knownĬase and then compare to a stored value. The user ID field is normally considered to be a field that’s notĬase sensitive, whereas the password field is case sensitive. These methods make the conversion a snap.Ĭase conversion is also useful for processing user logins. That you always want to store as all uppercase or all lowercase. The original string remains intact with mixed case.Ī practical area in which these methods are useful is when storing information in a database. These methods do not change the original string. ![]() These two methods transform a string into all uppercase or all lowercase letters. Learn More Buy Making a String All Uppercase or All Lowercase String string = "Contains some Upper and some Lower." String string2 = string.toUpperCase() String string3 = string.toLowerCase()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |