Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IgnoreCase

 
Rekha Dehal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
spi: com.ibm.appd.SAIAdon.class.
gca: com.ibm.appd.GCASdon.class
...
....

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
raj
 
Wirianto Djunaidi
Ranch Hand
Posts: 210
Ruby Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it only work with lower case file name, how about:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic