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

  • SEARCH
  • Home
  • 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 8910659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:44:43+00:00 2026-06-15T03:44:43+00:00

For example, say I have: public Class Foo { public final int X =

  • 0

For example, say I have:

public Class Foo {
    public final int X = 1;

    public getX() {
        return this.X;
    }
}

Is it possible to write something to change the value of X for future runs of the program? So if the value the user wanted to use for X changes, and all they have is a compiled .jar file, they could run said method and then the value of X in the compiled code would be forever changed.

I am developing software for a research lab, at which I work temporarily. What the lab techs will be interacting with is just a bunch of JFrames. They don’t know how to change it in the code and then recompile, etc. So I am trying to find the best way to have a “Change Defaults” button which would open a window for them that they can edit the default values, click “Save,” and then the new value is what is used until they change it again. How can I do this?

  • 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-15T03:44:44+00:00Added an answer on June 15, 2026 at 3:44 am

    java.util.Preferences, designed for this purpose, but involves a little work

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

Sidebar

Related Questions

Let's say I have this program: class Foo { public: unsigned int bar ()
Let's say I have this code: class Score { public Update(int score) { update
Lets say I have a class like this: public class Foo { public Foo
Lets say I have a class that is doing something like: public class Foo
If say I have some generic class, for example: public class Attribute<T> { }
Say suppose I have the following Java code. public class Example { public static
Say I have a class ObjectA (a view controller for example), that does this
Say you have a C++ class like: class Foo { public: virtual ~Foo() {}
Say I have class A with class A { final String foo() { //
Is intercontainer communication possible within Apache tomcat? For example: Say you have 2 rest

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.