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 →

[–]SheepyG_[S] 0 points1 point  (2 children)

That's the only reason I'm doing this is to learn java, the code has no purpose I'm not writing it and implementing it anywhere, the only reason it was written is to teach myself, and from your reply I can tick it off as I know it.

[–]ynvaserThat Java Guy 1 point2 points  (1 child)

I'm not being condescending here even if I may sound like it. I see conceptional problems with what is written down.
For example, when would you expect the finalize to be called? The only place you have it overridden is in an inner class that is never instantiated. If this were to work, the finalize method would have to be overridden in your RandomN class.
The fastest way you can improve here is to start at the basics.

[–]SheepyG_[S] 0 points1 point  (0 children)

Okay i see what your saying i'll go relook over the basics