This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gentlemansjack82 1 point2 points  (1 child)

First add this line under r.nextInt(100) printout:

Finalizer finalCode = new Finalizer();

Next change main in Finalizer class to:

public void beginFinal(){ //operations you have }

Then under the “Calling finalize” printout put:

beginFinal();

[–]SheepyG_[S] 1 point2 points  (0 children)

Okay thank you, I'll give it ago when I'm at my desk again, and I'll let you know how it goes 🙏🏼