This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes The equals character in the value side of Properties file 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 » Beginning Java
Bookmark "The equals character in the value side of Properties file" Watch "The equals character in the value side of Properties file" New topic
Author

The equals character in the value side of Properties file

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

I want to represent in a properties file, a name-value pair that looks like this:

Whereby the key is f and the value on the RHS is com.foo:style=x. Is this doable ? Thanks

Pho
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

I don't know but if you're having problems...

I read somewhere that objects of the class Preferences work better than objects of type Properties.

I did try out the ProperyResourceBundle and I believe that the ListResourceBundle has fewer problems because it gives you greater control (but of course it takes more coding).

Kaydell
 
wood burning stoves
 
subject: The equals character in the value side of Properties file
 
Similar Threads
Be the JVM: what is the output
doubt in using static variable......
Alternatives to java.util.Properties?
Default access variables
Recursion help