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


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.

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