Simple Java alert for debugging purposes
<p>I'm trying to debug/trace how some Java code is executed (or if it even is). I would like a simple way to do an alert just so I can tell how the code is being executed. Something like:</p>

<pre><code>alert ("do we get here");
</code></pre>

<p>in javascript, or:</p>

<pre><code>echo ("do we get here");
</code></pre>

<p>in php.</p>

<p>I have googled it but alot of the methods seem fairly complicated and an excessive amount of code. I am new to java, is there any way to achieve this?</p>
