How to properly add a value change listener to Map.Entry?

A project im working on currently requires me to ensure that while looping through a map’s entries, if Entry.setValue is called, it would trigger a value change event. I see I can try something like …

super.a = b instead of super(b)

I’m learning the super keyword and accidentally get this, here’s an example : public class A { double a; public A (double a) { this.a = a; } } public class B …