This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Java in General and the fly likes IgnoreCase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "IgnoreCase" Watch "IgnoreCase" New topic


Rekha Dehal

Joined: Oct 13, 2003
Posts: 7
can someone help me PLEASE,
This is part of my code.

String fileName = inputFile.getName();
try {
String className = props.getProperty(fileName.substring(0, 3));
Its getting the file name from the local directory, and in the property file I need to check first 3 charecters of the file name and get the class name mentioned in the property file
for exmaple:
Property file

When testing my java file, its showing null in the class name, when I put the local file name with Capital, but when the file name is lower case its picks the proper class name from the properties file. how to solve this probs..
I know some guys r very smart here, I hope someone will help me ASAP..
thankning u
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

If it only work with lower case file name, how about:
I agree. Here's the link:
subject: IgnoreCase