Java: having files containing only general methods?
<p>I was wondering if there was a way to have methods separated from the main and class files (like how in c you can have .c &amp; .h with just methods that you can import into projects).</p>

<p>Specifically I have a 'logical exclusive or' function that I want to use across several classes and I thought it would be good practice not to have the same function repeated across several classes.</p>
