getting the current class object
<p>I have three classes.. A,B,C. </p>

<ol>
<li>In both classes B and C i have a static string variable "name" which contains the name of B and C, as-</li>
</ol>

<blockquote>
<pre><code> class B
     {
     static name;
     public static void main(String args[])
     {
     name="Class B";
     A.getName();
     }
</code></pre>
</blockquote>

<ol>
<li>I am calling class A's getName method from class B and C.. Class A is as follows:</li>
</ol>

<blockquote>
  <p>class A
     {</p>

<pre><code>getName()
{
System.out.println(this class called me);
}
}
</code></pre>
</blockquote>

<p>class C is:</p>

<blockquote>
<pre><code> class C
     {
     static name;
     public static void main(String args[])
     {
     name="Class C";
     A.getName();
     }
</code></pre>
</blockquote>

<p>Now my question is, what code should i use in place of "this class called me" in class A so that i get the name of whichever class calls A! I hope i am clear!!</p>
