Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How do I use comma as part of the value in a properties file

Posted on 2007-08-03
Medium Priority
Last Modified: 2013-11-05
I am having a comma in the value of property file(.properties). I am using java.util.Properties to get key and value.
for eg address=123,ABC Street
Here "123,ABC Street " should be the value. But I am not able to use a escape character for comma
Tried placing in double quotes and using back slash before comma.
Is there a way to use comma in the value
Question by:karthik_cs
  • 2
LVL 86

Accepted Solution

CEHJ earned 300 total points
ID: 19627650
IIRC you don't need to do anything. Use the comma directly

Author Comment

ID: 19627713
Then it would give me 123 and ABC Street as two values. Is there a way to get "123, ABC Street" as one value
LVL 86

Expert Comment

ID: 19627808

>>Then it would give me 123 and ABC Street as two values
No - as one value

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question