Can keys on Properties have quotes?

Hi,
Can keys on Properties file have quotes?
i.e.
String "font type"=Some font type

Thanks
Jamie
jamie_lynnAsked:
Who is Participating?
 
malfunction84Commented:
Yes, they can.  If your .properties file has something like this:

"test"=it worked

...you can retrieve the value with this...

Properties prop;
// read in the .properties file
System.out.println(prop.getProperty("\"test\"")); //prints "it worked"
0
 
objectsCommented:
i don't think so.
try it out, you may need to quote them \"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.