I have a class. Many differenct places must access a certain segment code (It is like the old days GO TO). I put this segment of code in a method:
and at the different calling places, I put:
I am told by my Manager that I should code in a different way. At the different calling places, I should put:
and before the shared segment of code, I should put:
Is there such of way of
Java coding? I do not think that I am knowledgeable enough.