answersLogoWhite

0


Best Answer

Use normal arithmetic operators.

// Create an int starting with a value of 2500
int balance = 2500;

// Deposit 500
balance = balance + 500;

// Withdraw 500
balance = balance - 500;


See the related links section for a tutorial.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Java int how to change the int variable but keep the same initialized word more in discuss on my question?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is responding valuable?

Do you mean "responding variable"? In a scientific investigation, you try to change only one thing to see what happens. The thing you change is the manipulated variable (also called the independent variable). The result of this change is the responding variable (also called the dependent variable). For example, what if you measure the temperature of a beaker of water, then put it in the refrigerator for 24 hours, then measure again. The change in the temperature from the room to the fridge is the manipulated variable (you controlled it). Any change in the water temperature is the responding variable. It responded to the change you made.


How can you change the value of a constant variable in C?

You can change a static variable by putting the static variable into a function that has operations that you intend to execute upon the variable. Example, you want to change the static variable to another value or make an addition of 2. Put the source code inside a function with the static variable declared locally within the function.Every time you call the function, the static variable value will change. Take note that the static variable retains the last value you declared it in your function call.A more terse answerLocal variables declared as static are changed as normal; they are special in that their values persist across function calls.


Is a world globe an example of a variable?

A variable is something that can change in a experiment. A globe can't really change, so no. -yoda


Is it true that passing data by reference enables you to change the value stored in a variable in one file using a function in another file?

Yes, passing a variable by reference gives you a pointer to the original variable, meaning you can change its value from within the function being called and the change will affect the original variable.


What does variable mean in ICT?

something that changes and doesn't stay the same a variable is something that you change

Related questions

Some variables that can change in an expeirement and discuss the inportance of a control group?

dependent variable & control variable


What is constant variable in c?

Constant variables refers to those variables whose values cannot be changed. These variables should be initialized along with their declaration. Attempt to change the value of a constant variable will generate compile error. The syntax for declaring a constant variable is:const data-type variableName = value;


How would you define what a dependent variable and independent variable are?

Independent variables answer the question "What do I change?"Dependent variables answer the question "What do I observe?"Controlled variables answer the question "What do I keep the same?"


Is egg independent variable?

An independent variable is something you CAN change, like the power on a Bunsen burner etc etc. An egg is neither an dependant variable or dependant variable. SO the answer to your question is no.


How does the dependent variable change as the independent variable changes in a linear relationship?

well, the dependent variable doesn't change the independent...but i am doing he home wrk that has the EXACT question in it ( it is 1/21/10)i am quite cunfuzzled and need help!


Is the independent variable the one that does not change?

No, as the name Variable implies, it can and does change. Since it is 'Independent' its change is not a direct effect of the change of any other Variable. Additionally, the independent variable depends on the dependent variable.


Why does the dependent variable change as the independent variable changes into a linear relationship?

The independent variable is the variable that you change and manipulate in an equation. This causes the dependant variable to change.


What is an idependent variable?

It is the kind of variable that you purposely change.


A variable that does not change as another variable changes-?

The variable that changes due to a change in another variable is known as 'dependant variable".


What Is the variable that change in response to the manipulated variable?

The dependent variable may change in response to the manipulated variable.


What as a possible definition of the rate of growth?

Generally it would be the change in the variable in question divided by the change in time over which it took place.


4 What is dependent variable and independent variable?

change and no change