This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes java.util Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "java.util" Watch "java.util" New topic


Jackie Wang
Ranch Hand

Joined: Apr 18, 2002
Posts: 315
I was asked to pass in the object Resources bundles instead of Properties in 1 method.
File f = new File(MYProperties.getDefaultFileName());

fileInputStream = new FileInputStream(f);
Properties d= new Properties();
try {

what should I do to modify the code?
I got lost after reading the 2 links:
Jackie Wang
Ranch Hand

Joined: Apr 18, 2002
Posts: 315
Properties p = new Properties();
Enumeration e = p.propertyNames();
any equivalent in the resource bundles?
subject: java.util
Similar Threads
Storing data into excisting Data
what is a properties file?
what is java's equivalent to c/c++ string table resource files
read a properties file
How to create a properties file?