Eclipse console not producing correct output [message #1792310] |
Sun, 15 July 2018 23:32  |
Eclipse User |
|
|
|
I have an issue with Eclipse. It is not producing my desired output after I make changes to the program. For example:
package program;
public class Assignment3 {
public static void main(String[] args) {
int x = 15;
int y = 10;
int z = x + y;
System.out.println(y);
}
}
This output prints out y, which is 10. However, once I change the print statement to produce z, It remains 10.
I then restarted the IDE and It provided the correct output of 25 for z. However, If i change the print statement to provide x, it remains 25.
I feel like it isn't even trying to compile newer updates to the code, just spitting out the first print statement it receives.
I hope I explained this properly!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08176 seconds