l have been trying to work out how to retrieve the id/name of a
object from within a method that the object has called
Eg: Object is constructed within main()
<code>userObject FredBloggs; </code>
Then later a call is made to
<code>FredBloggs.withdraw(100,UnivRoadATM);</code>
From within the withdraw method l wish to identify the object id
ie: "FredBloggs". l have tryed to identify it using
<code>printStackTrace()</code> but this only gives the class FredBloggs
belongs to ie: "userObject" and were the call is made from
within main().
Is there any way l can retrieve this information
Thanks Aran