I am new to Java, and have a question about variables. Here is an example.
int hello = 6;
int goodbye = 7;
int combined = hello + goodbye;
System.out.println(combined);
hello = 10;
System.out.println(combined);
When I reassign hello, and give it the value of 10 instead of six, and I print combined the second time, it still says combined is equal to 13, not 17 in the console. How do you fix that? Thank You!