Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

This isn't Java theory, at least not in the Java SE context....