Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Hi, everyone ,i have a question with toUpperCase(). Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Hi, everyone ,i have a question with toUpperCase()." Watch "Hi, everyone ,i have a question with toUpperCase()." New topic
Author

Hi, everyone ,i have a question with toUpperCase().

Javan Li
Ranch Hand

Joined: Jul 24, 2002
Posts: 84
for example:
protected CustomizeRecItem get(String strTableName,String strColName) {
return (CustomizeRecItem)mapRecItem_.get(strTableName.toUpperCase() +
":" + strColName.toUpperCase());
}
If i change to below , is it any difference ??
protected CustomizeRecItem get(String strTableName,String strColName) {
return (CustomizeRecItem)mapRecItem_.get((strTableName +
":" + strColName).toUpperCase());
}
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Moving this to JIG
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
There's no difference.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hi, everyone ,i have a question with toUpperCase().
 
Similar Threads
Who can help me improve performance of these methods? thanks!
compating strings using ==
How would I dump the contents of a table to text?
How to fetch Table Name
String == (Abhilash mock)