Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "java.util" Watch "java.util" New topic
Author

java.util

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 {
d.load(f);
}

what should I do to modify the code?
I got lost after reading the 2 links:
http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html
http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html
thanks!
Jackie Wang
Ranch Hand

Joined: Apr 18, 2002
Posts: 315
Properties p = new Properties();
Enumeration e = p.propertyNames();
any equivalent in the resource bundles?
Thanks!
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: java.util