Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8586849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:24:54+00:00 2026-06-11T22:24:54+00:00

I try to overwrite existing property value in Properties file using Properties#setProperty() method. But

  • 0

I try to overwrite existing property value in Properties file using Properties#setProperty() method.

But I get an extra backslash…

For example I have following entry inside Properties file:

#url to server
url=http://192.22.222.222

and when I try to overwrite value http://192.22.222.222 by new value http://192.33.333.333 I get followong result:
http\://192.33.333.333

i.e. first backlash is unnecessary. I

Where is problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:24:56+00:00Added an answer on June 11, 2026 at 10:24 pm

    There’s no problem. When you load the file again, you won’t see a backslash in the property value. The escaping code is choosing to escape all colons (and probably all equals signs) regardless of whether it’s strictly required. (When they’re not part of the key, you don’t have to escape them, but it probably makes the code simpler to do so.)

    So long as you’re always loading the code using one of the Properties.load methods, you should see no problems at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to decompress my .gz file and overwrite the db file I
I've been trying to override the file login.xml but no matter what I try,
How to change this code to force overwrite existing previously opened file saved on
I want to override the SubmitChanges() method for my model. Whern I try to
I have a dialog using JFileChooser. When I save a file by FileOutputStream ,
I'm trying to open a dialog window, but every time I try to open
I'm using PHP 5.2.6. I want to have a default value for an argument
I'm trying to save an existing docx file on the desktop after I automate
I'm trying to get an existing Preference subclass to work that saves a color
When i try to delete the cell i get crash ... Assertion failure in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.