[Solved] Java Swing Program not re-initialinzing variable value [closed]

[ad_1]

Please don’t post anything like this next time. just the needed part.
your problem is that you refresh temp = 0 on every call of actionPerformed, but you forget to reset creditHoursTotalDegree = 0. It accumulates on every call.

[ad_2]

solved Java Swing Program not re-initialinzing variable value [closed]